Define c_fully_fold separately for C and C++.
authorJason Merrill <jason@redhat.com>
Wed, 2 Dec 2015 19:04:38 +0000 (14:04 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 2 Dec 2015 19:04:38 +0000 (14:04 -0500)
commit4250754eea1c10c88f49c9f11b9f912f992b7c42
tree08c85cdc811c8da6f75b43930fc94de70352d1ab
parente9ea372d08324b38acbc7234e803f8f128c439b8
Define c_fully_fold separately for C and C++.

gcc/c-family/
* c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
(c_fully_fold_internal, decl_constant_value_for_optimization):
Move to c/c-fold.c.
* c-common.h: Don't declare decl_constant_value_for_optimization.
gcc/c/
* c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
(c_fully_fold_internal, decl_constant_value_for_optimization):
Move from c-common.c.
* c-tree.h: Declare decl_constant_value_for_optimization.
* Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
gcc/cp/
* cp-gimplify.c (c_fully_fold): Define.

From-SVN: r231196
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/Make-lang.in
gcc/c/c-fold.c [new file with mode: 0644]
gcc/c/c-tree.h
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c