[gnu.gcc.bug] Stage 1-2 comparison

dpi@loft386.UUCP (Doug Ingraham) (02/26/90)

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