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: RFA: PATCH to initializer_constant_valid_p for c++/38880


Jason Merrill <jason@redhat.com> writes:

> Ian Lance Taylor wrote:
>> Use a cast.  The initializer_constant_valid_p code will look through
>> casts.
>
> Good point, with a cast I was able to make it do odd things.  Fixed
> thus, and regression tested x86_64-pc-linux-gnu.  OK for trunk?
>
>
>
>
> 2009-02-23  Jason Merrill  <jason@redhat.com>
>
> 	PR c++/38880
> 	* varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
> 	narrowing_initializer_constant_valid_p.
> 	(narrowing_initializer_constant_valid_p): Don't return 
> 	null_pointer_node for adding a pointer to itself.

This is OK.

Thanks.

Ian


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