OSDN Git Service

gcc:
authorshinwell <shinwell@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jun 2006 16:28:55 +0000 (16:28 +0000)
committershinwell <shinwell@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jun 2006 16:28:55 +0000 (16:28 +0000)
commit47be647da1882b77742667d3ff5b5332c4689b6f
tree8043b65180715166e17c85119e10cb873f903255
parentf9ea6ec6c64b5a62a2f57967c0131345c3392348
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114358 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/tree.h