This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bootstrap error on x86-linux, fixincl segfault + fix


 > 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]