re PR middle-end/49705 (-Wstrict-overflow should not diagnose unevaluated expressions)
authorIan Lance Taylor <iant@google.com>
Thu, 21 Jul 2011 21:30:24 +0000 (21:30 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 21 Jul 2011 21:30:24 +0000 (21:30 +0000)
commit02614448c98bec25dacfe97635f05a04aa748676
tree7addef770a5a423e51574d8ee986e8096f1cbd72
parent1f1c0dbd36f67527f1efe575432e1fd7d4861eec
re PR middle-end/49705 (-Wstrict-overflow should not diagnose unevaluated expressions)

gcc/c-family:
PR middle-end/49705
* c-common.c (c_disable_warnings): New static function.
(c_enable_warnings): New static function.
(c_fully_fold_internal): Change local unused_p to bool.  Call
c_disable_warnings and c_enable_warnings rather than change
c_inhibit_evaluation_warnings.
gcc/testsuite:
PR middle-end/49705
* gcc.dg/pr49705.c: New test.

From-SVN: r176591
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr49705.c [new file with mode: 0644]