[gnu.gcc.bug] gcc 1.35 and SPARCstation SunOS 4.0.3

rusty@GARNET.BERKELEY.EDU (08/27/89)

I'm trying to install gcc 1.35 on a SPARCstation running SunOS 4.0.3.
I'm following the instructions in the INSTALL file and doing "make",
"make stage1", etc. stuff and recompiling it all with stage2/gcc
-Bstage2, etc. and it all runs without any complaints.  But, when I
get to the last step of doing a cmp of the .o files in . and the ones
in stage2 some of the files (but not all) are different.

What's wrong?

jlo@elan.elan.com (Jeff Lo) (08/29/89)

In article <8908262227.AA21270@garnet.berkeley.edu> rusty@GARNET.BERKELEY.EDU writes:
>I'm trying to install gcc 1.35 on a SPARCstation running SunOS 4.0.3.
>I'm following the instructions in the INSTALL file and doing "make",
>"make stage1", etc. stuff and recompiling it all with stage2/gcc
>-Bstage2, etc. and it all runs without any complaints.  But, when I
>get to the last step of doing a cmp of the .o files in . and the ones
>in stage2 some of the files (but not all) are different.

The same thing happened to me.  What I finally found out is that there
is some bug which is only triggered by not using the "-g" flag.  When
I tried compiling everything with "-g", everything worked as it is
supposed to.  The only thing is that the files are much larger because
of all of the additional symbol information that is kept when using
the "-g" flag.
-- 
Jeff Lo, Elan Computer Group, Inc.
jlo@elan.com, ..!{ames,uunet}!elan!jlo
888 Villa Street, Third Floor, Mountain View, CA 94041, 415-964-2200