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] __builtin_constant_p inside an initializer


On Thu, 1 Jun 2006, Mark Shinwell wrote:
> 2006-06-01  Mark Shinwell  <shinwell@codesourcery.com>
>
> 	* tree.h: Declare folding_initializer.
> 	* builtins.c (fold_builtin_constant_p): Give definite answer
> 	if folding inside an initializer.
> 	* fold-const.c: Define folding_initializer.
> 	(START_FOLD_INIT): Save and then set folding_initializer.
> 	(END_FOLD_INIT): Restore folding_initializer.
>
> 	* gcc.c-torture/compile/builtin_constant_p.c: New test.

This is OK for mainline.  Thanks.

Roger
--


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