From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: chris@lslsun.epfl.ch (Christian Iseli) Cc: egcs@cygnus.com Subject: Re: Small problem in cse Date: Mon, 20 Oct 1997 09:43:00 -0000 Message-id: <4774.877365906@hurl.cygnus.com> References: <199710200842.KAA16565@lslsun17.epfl.ch> X-SW-Source: 1997-10/msg00871.html In message < 199710200842.KAA16565@lslsun17.epfl.ch >you write: > > In message < 199710172043.WAA24596@Rivendell.MiddleEarth.net >you write: > > > I've received a segfault from cc1 due to a NULL dereference in cse.c. > > > The following trivial patch cures the problem. > > Yes, but _why_ is classp NULL? > > classp is not NULL, but classp->first_same_value is NULL, and later > dereferenced. I don't *know* why that field is NULL, I just assumed > that no same value had been seen yet... Sorry, I meant to say why is classp->first_same_value NULL? >From my review of the code I don't see that classp->first_same_value should ever be NULL -- thus I suspect something has gone wrong elsewhere that needs to be investigated. But I could be wrong, since you've got a target & testcase which triggers this problem you'll need to do some of the analysis. Thanks, jeff