Sun C compiler bug
Chris Torek
chris at umcp-cs.UUCP
Sat Jul 27 04:26:52 AEST 1985
Your example works if "bp" is not a register. If it is (minimal
bug code: "f(){register float *p;if(*p++)"), I get
HEY! cookie = SCC
node1) U*, float, NOPREF, SU = (0,0)
node2) ++, PTR float, NOPREF, SU = (1,0)
node3) REG a5, PTR float, NOPREF, SU = (0,0)
node4) ICON #4, int, NOPREF, SU = (0,0)
, line 2: compiler error: floatcode got a tree it didn't expect
which clearly indicates that the floating point code generator
doesn't handle INCR nodes. (Nor ASG MINUS, by the way.) Of course
these occur only on "float *", not "double *"....
(I like the error message; it shows exactly what the problem is.
Now if only we had the source....)
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP: seismo!umcp-cs!chris
CSNet: chris at umcp-cs ARPA: chris at maryland
More information about the Comp.unix.wizards
mailing list