This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR c/19977 overflow in non-static initializer should not be pedwarn


:ADDPATCH c:

Only emit a pedantic warning about overflow in constant expression
(constant_expression_warning) for static initialisers. This fixes PR
c/19977 and removes two XFAILs from the testsuite.

Bootstrapped and tested with --enable-languages=all
--enable-decimal-float for revision 119813 on i686-pc-linux-gnu.


2006-12-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>


 PR c/19977
 * c-typeck.c (store_init_value): Don't emit pedantic overflow
warning for non-static initializers.

testsuite/
2006-12-14  Manuel Lopez-Ibanez <manu@gcc.gnu.org>

 PR c/19977
 * gcc/testsuite/gcc.dg/overflow-warn-3.c: Remove XFAIL.
 * gcc/testsuite/gcc.dg/overflow-warn-4.c: Remove XFAIL.

Attachment: fix-overflow-for-static.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]