Path: utzoo!utgpu!watmath!kcwellsch From: kcwellsch@watmath.waterloo.edu (Ken Wellsch) Newsgroups: gnu.gcc.bug Subject: Re: gcc 1.33 doesn't compile itself with stage2/gcc on a sun4os4 and -O Message-ID: <23426@watmath.waterloo.edu> Date: 4 Feb 89 03:27:56 GMT References: <8902032110.AA08194@hector.homer.nj.att.com> <8902032233.AA00341@sugar-bombs.ai.mit.edu> Reply-To: kcwellsch@watmath.waterloo.edu (Ken Wellsch) Distribution: gnu Organization: U. of Waterloo, Ontario Lines: 12 > On a sun4os4 configuration, if you change CFLAGS in the Makefile to -O > instead of -g, cc1 coredumps in the last stage (when you run > make CC=stage2/gcc CFLAGS="-O -Bstage2/") on the file toplev.c. I expect you are changing the "-g" to a "-O" on the first "make" compilation step in compiling gcc which uses the native "cc". Don't. Another software person here discovered that it wasn't very hard to find examples of C code that when compiled using the stock "cc" on sun4-os4 WITH optimization, it produce WRONG code. We were really impressed with the code generated with gcc-1.32. BTW: it was not wrong on the samples he found failed with "cc -O".