Article View: gnu.gcc.bug
Article #2514Re: comparing stage2 with stage3 on sun386i
From: Brian Matthews
Date: Thu, 06 Apr 1989 19:11
Date: Thu, 06 Apr 1989 19:11
31 lines
1814 bytes
1814 bytes
Marty (Leisner.Henr@XEROX.COM) writes:
|I've been using gcc for a while but never followed the stage2/stage3
|directions.
|I finally tried it on sun386i (gcc v1.33).
|
|I followed the directions in the manual for making stage1, 2 and 3 and ran
|cmp $file stage/$file
|
|Byte 5 is different (which is the timestamp -- it makes sense -- I think).
|
|I would assume non-coff systems don't contain the timestamp information in
|the object files.
|
|Anyway, the comment in the manual (section 2.10):
|"Any difference, no matter how innocuous, indicates that the stage 2
|compiler has compiled GNU C incorrectly..."
|isn't really correct, at least for coff.
It's not only not really correct, it can be misleading. As its default
action, cmp stops after it has found one difference. You have to give it
a -l to show you all of the differences. So when you did your cmp $file
stage/$file, and it told you byte 5 was different, it didn't tell you
whether or not any of the rest of the two files differ.
With coff object files, you should always do a cmp -l, and ignore
differences reported for bytes 5, 6, 7, and 8 (cmp reports differences by
counting the first byte of the file as 1. Sigh) which is the timestamp.
--
Brian L. Matthews blm@cxsea.UUCP ...{mnetor,uw-beaver!ssc-vax}!cxsea!blm
+1 206 251 6098 Computer X Inc. - a division of Motorola New Enterprises
Technical Details
Message-ID:
<2657@cxsea.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!tellyx!attcan!uunet!tut.cis.ohio-state.edu!rutgers!mcdchg!cxhq!cxsea!blmReferences:
<890404-101808-6755@Xerox>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!tellyx!attcan!uunet!tut.cis.ohio-state.edu!rutgers!mcdchg!cxhq!cxsea!blm From: blm@cxsea.UUCP (Brian Matthews) Newsgroups: gnu.gcc.bug Subject: Re: comparing stage2 with stage3 on sun386i Message-ID: <2657@cxsea.UUCP> Date: 6 Apr 89 19:11:10 GMT References: <890404-101808-6755@Xerox> Reply-To: blm@cxsea.UUCP (Brian Matthews) Distribution: gnu Organization: Computer X Inc. Lines: 31