Path: utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!eda!jim From: jim@eda.com (Jim Budler) Newsgroups: gnu.gcc.bug Subject: gcc stage2 comparison on Sun386i (COFF) Message-ID: <487@eda.com> Date: 22 Feb 89 19:56:03 GMT Reply-To: jim@eda.com (Jim Budler) Distribution: gnu Organization: EDA Systems,Inc. Santa Clara, CA Lines: 31 System: Sun386i SunOS4.0.1 gcc-1.3x Problem: make CC=stage2/gcc CFLAGS="-g -O -Bstage2/" foreach file (*.o) >>> cmp $file stage2/$file end The compare will always fail due to the time stamp which is a part of the COFF header. Solution: make CC=stage2/gcc CFLAGS="-g -O -Bstage2/" foreach file (*.o) cmp $file stage2/$file 7 7 end The additional two arguments to cmp provided with SunOS 4.0.1 are the number of bytes to skip at the beginning of the compare, so this command compares the *.o files AFTER the timestamp. jim -- Jim Budler address = uucp: ...!{decwrl,uunet}!eda!jim domain: jim@eda.com voice = +1 408 986-9585 fax = +1 408 748-1032