]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree.h: Declare folding_initializer.
authorMark Shinwell <shinwell@codesourcery.com>
Sun, 4 Jun 2006 16:28:55 +0000 (16:28 +0000)
committerMark Shinwell <shinwell@gcc.gnu.org>
Sun, 4 Jun 2006 16:28:55 +0000 (16:28 +0000)
commit63b4819753c735449a0915e62928fa6374cd70c3
tree8043b65180715166e17c85119e10cb873f903255
parent7ec434b841e8120aad467db3efb249f536f5b819
tree.h: Declare folding_initializer.

gcc:

* 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/testsuite:

        * gcc.c-torture/compile/builtin_constant_p.c: New test.

From-SVN: r114358
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/tree.h