Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix-wizards Subject: Re: Sun C compiler bug Message-ID: <1013@umcp-cs.UUCP> Date: Fri, 26-Jul-85 14:26:52 EDT Article-I.D.: umcp-cs.1013 Posted: Fri Jul 26 14:26:52 1985 Date-Received: Sun, 28-Jul-85 03:25:26 EDT References: <666@cvl.UUCP> Distribution: net Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 20 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@umcp-cs ARPA: chris@maryland