[gnu.gcc.bug] Bug in gcc-1.31 on SysV386

local@APPLE.COM (Local Development) (11/24/88)

I just finished compiling gcc-1.31 on my system!! Yeah!! (Thank you,
FSF!).

My system is: Altos 1000 running Unix System 5.3.1b. It's a
386 box.

I made the stage1 and stage2 compilers. Everything was fine.
Running the compare on the object files, I always get:

c-convert.o stage2/c-convert.o differ: char 5, line 1
version.o stage2/version.o differ: char 5, line 1
....
ad nauseam...

That is, every object file differs at char 5, line 1.

Additionally, for each object file xyzzy.o, xyzzy.o and stage2/xyzzy.o
are the same size.

So I did:

cp version.c ho.c
stage2/gcc -g -O -Bstage2/ -c ho.c
mv ho.o ho.o.orig
stage2/gcc -g -O -Bstage2/ -c ho.c
cmp ho.o ho.o.orig
ho.o ho.o.orig differ: char 5, line 1

Examining ho.o and ho.o.orig, the *only* place they differ is character
5, which seems to be set to a random value at each compilation (with the
same compiler!).

Any ideas??? It seems that perhaps some static memory is not getting
correctly initialized...

			---Kayvan

P.S. The generated gcc seems to work just fine.

exodus@cheers.uucp (Greg Onufer) (11/25/88)

From article <8811231738.AA18183@satyr.UUCP>, by satyr!local@APPLE.COM (Local Development):
> I just finished compiling gcc-1.31 on my system!! Yeah!! (Thank you,
> FSF!).
> 
> My system is: Altos 1000 running Unix System 5.3.1b. It's a
> 386 box.
> 
> Examining ho.o and ho.o.orig, the *only* place they differ is character
> 5, which seems to be set to a random value at each compilation (with the
> same compiler!).

Try looking up the COFF file format in your system documentation or in
your header files... 

A few bytes at the beginning of the file change from compilation
to compilation (I think I got bytes 5 & 6 changed on a Sun Roadrunner--
no flames, Sun 386i's DO USE COFF, not BSD a.out files).

Use "cmp -l" to compare your .o files, and it should give you more
information to help you decide which files really differ in important
ways.

--greg
-- 
Greg Onufer .. University of the Pacific .. Focus Semiconductor
.. exodus@cheers.uucp .. sun!daver!cheers!exodus .. 415-965-0604