🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2898

Stage 1-2 comparison

#2898
From: Doug Ingraham
Date: Mon, 26 Feb 1990 04:01
36 lines
1334 bytes
I first started using gcc at 1.34 and have expected that someone
would fix the INSTALL file before this.  The problem is that the
example shell script given to compare the output of stage 1 and
stage 2 does an extremely poor job of comparing the .o files.
Here is that script:

for file in *.o; do
echo $file
tail +10 $file >foo1
tail +10 stage2/$file >foo2
cmp foo1 foo2
rm foo1 foo2
done

This looks for the 10th newline in the file and then starts comparing.
This might generate an output file that has no characters in it.  The
correction is simple.  Change the +10 into a +9c so that the first 9
characters are skipped.  This is the corrected script:

for file in *.o; do
echo $file
tail +9c $file >foo1
tail +9c stage2/$file >foo2
cmp foo1 foo2
rm foo1 foo2
done

Apart from this GCC 1.37 updated perfectly on my SYS V 386 system.

Thanks to all the contributors!

-- 
Doug Ingraham (SysAdmin)
Lofty Pursuits (Public Access for Rapid City SD USA)
uunet!loft386!dpi
Technical Details
Message-ID: <610@loft386.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!milano!uudell!loft386!dpi

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!milano!uudell!loft386!dpi
From: dpi@loft386.UUCP (Doug Ingraham)
Newsgroups: gnu.gcc.bug
Subject: Stage 1-2 comparison
Keywords: Sys V COFF
Message-ID: <610@loft386.UUCP>
Date: 26 Feb 90 04:01:18 GMT
Organization: Lofty Pursuits, Rapid City, SD USA
Lines: 36