This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] Fix PR30147, fold_read_from_constant_string ICEing on aggregate return type


On Tue, 12 Dec 2006, Paolo Bonzini wrote:

> Richard Guenther wrote:
> > This fixes PR30147 where we try to fold
> > 
> >   *(charD.21[1:1] *) "K"
> > 
> > to 'K' of type (charD.21[1:1] *).  On fold-converting to that type we
> > ICE.
> > 
> > Fixed by only folding a read if the return type is integer.
> 
> Why not INTEGRAL_TYPE_P?

I wouldn't expect STRING_CSTs of enum or boolean type.  We're checking
for TREE_CODE (string) == STRING_CST at least.

Richard.

--
Richard Guenther <rguenther@suse.de>
Novell / SUSE Labs


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