Bootstrap error on x86-linux, fixincl segfault + fix

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Fri May 12 07:42:00 GMT 2000


 > From: Bruce Korb <bkorb@sco.COM>
 > > 
 > > diff -rup orig/egcs-CVS20000511/gcc/fixinc/fixincl.c egcs-CVS20000511/gcc/fixinc/fixincl.c
 > > --- orig/egcs-CVS20000511/gcc/fixinc/fixincl.c  Thu May 11 10:00:57 2000
 > > +++ egcs-CVS20000511/gcc/fixinc/fixincl.c       Thu May 11 07:59:59 2000
 > > @@ -405,7 +405,7 @@ run_compiles ()
 > > 
 > >    /*  Allow machine name tests to be ignored (testing, mainly) */
 > > 
 > > -  if ((*pz_machine == '\0') || (*pz_machine == '*'))
 > > +  if (pz_machine && ((*pz_machine == '\0') || (*pz_machine == '*')))
 > >      pz_machine = (char*)NULL;
 > > 
 > >    /* FOR every fixup, ...  */
 > 
 > 
 > Exactly right.  My mistake, but there is also little point in
 > assigning it NULL if it is already NULL :-).  Please apply as
 > I am off to other things for a while.  Cheers!

Looks like Jason already got it.

--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


More information about the Gcc-bugs mailing list