aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2015-05-14 11:42:53 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2015-05-14 11:42:53 +0000
commit3aa3c9fc9a5f82f23717386df7fa342e0a89b627 (patch)
treef48930586f2a03d6d44f7e85c4dfe7f4f6c23873 /gcc/varasm.c
parent12b3286d41a6aedba8e295a7c7934ec124904b55 (diff)
downloadgcc-3aa3c9fc9a5f82f23717386df7fa342e0a89b627.zip
gcc-3aa3c9fc9a5f82f23717386df7fa342e0a89b627.tar.gz
gcc-3aa3c9fc9a5f82f23717386df7fa342e0a89b627.tar.bz2
re PR c/66066 (r222889 causes bogus error: initializer element is not constant)
PR c/66066 PR c/66127 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal. (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and use it. If FOR_INT_CONST, require that all evaluated operands be INTEGER_CSTs. * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic rather than with 0. * gcc.dg/pr14649-1.c: Add -Wpedantic. * gcc.dg/pr19984.c: Likewise. * gcc.dg/pr66066-1.c: New test. * gcc.dg/pr66066-2.c: New test. * gcc.dg/pr66066-3.c: New test. From-SVN: r223193
Diffstat (limited to 'gcc/varasm.c')
0 files changed, 0 insertions, 0 deletions