This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: language option segfault
- To: law at cygnus dot com
- Subject: Re: language option segfault
- From: Bill Currie <bcurrie at mailhost dot tssc dot co dot nz>
- Date: Wed, 22 Jul 1998 09:46:41 +1200
- CC: egcs-patches at cygnus dot com
- Organization: Telecommunication Systems Support Centre
- References: <1935.901003292@hurl.cygnus.com>
Jeffrey A Law wrote:
>
> In message <35AEC28A.5535@tssc.co.nz>you write:
> > (I think I have a merge of mainline and 1.1 branches)
> I don't understand what you're trying to say.
Taht I'm not sure which branch the problem was in.
>
> > This fixes a bug introduced with `DEFINE_LANG_NAME'. Most places seem
> > to check for a null options, but this one forgot.
> >
> > * toplev.c (main): check option is non-null before
> > testing against it
> What specifically are you trying to fix? ie, what command would I
> have to issue to get this core dump?
cc1 (and possibly the others) would die on startup. `./xgcc -B./ foo.c'
is sufficient to generated the core dump.
> I ask this because check_lang_option checks for arguments with are
> NULL and should do the right thing.
It wasn't the argument that was null, but the long-option string in the
internal table that was null (a null pointer is used as a separator
between language specific options).
Bill
--
Leave others their otherness