[net.micro.att] 7300 3.0 cc bugs

frew@ucsbcsl.UUCP (03/28/86)

Here are a couple of code sequences that make our brand-new PC 7300 Release
3.0 C compiler lose its lunch.  The error messages have been inserted as
comments above the offending lines.  Successful workarounds are enabled by
-DFIX.
---------------------------------------
f(a, b, c)
	double	*a;
	double	*b;
	double	*c;
{
#ifndef	FIX
	/* "b00.c", line 8: compiler error: allocation fails, op STAR */
	*a = *b = *c;
#else
	*b = *c;
	*a = *b;
#endif
}
---------------------------------------
f(p)
#ifndef	FIX
	register double	*p;
#else
	double		*p;
#endif
{
	double		d;

	/* "b01.c", line 11: compiler error: illegal byte address (ZB) */
	*p++ = d;
}
---------------------------------------
There is obviously some gotcha connected with (double *) formal parameters ...

I am posting these in hopes that someone from AT&T is reading this newsgroup.
If anyone out there knows of a better way to email bug reports to AT&T, please
advise.

P.S.:  I would be interested in talking with anyone who is trying to make any
non-trivial use of the 7300's floating point (yes, I realize it's emulated
and not intended for serious number crunching, but it still ought to work,
albeit slowly).

-- 
James Frew	ucbvax!ucsbcsl!frew
Computer Systems Lab., Univ. of Calif., Santa Barbara, CA 93106
(805) 961-2309