[PATCH] __builtin_constant_p inside an initializer

Roger Sayle roger@eyesopen.com
Fri Jun 2 03:02:00 GMT 2006


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
--



More information about the Gcc-patches mailing list