]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/ChangeLog
PR c/64440
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Jan 2015 08:21:50 +0000 (08:21 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Jan 2015 08:21:50 +0000 (08:21 +0000)
commitb57910fab5157e0743f0491bd92adc7636163de5
treed0f2a4cd5014273666c800236267295be4add8a2
parent15e18a8ca21478dce0d19e9e0fc1ef61fba9fac7
PR c/64440
* c-common.c (c_fully_fold_internal): Warn for division and modulo
if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.

* gcc.dg/pr64440.c: New test.
* c-c++-common/pr56607.c: Don't limit dg-warnings to C++.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219279 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr56607.c
gcc/testsuite/gcc.dg/pr64440.c [new file with mode: 0644]