This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap error on x86-linux, fixincl segfault + fix
- To: bkorb at sco dot COM
- Subject: Re: Bootstrap error on x86-linux, fixincl segfault + fix
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 12 May 2000 10:42:48 -0400 (EDT)
- Cc: autogen at linuxbox dot com, egcs-bugs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
> 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