r219279 - in /trunk/gcc: c-family/ChangeLog c-f...

mpolacek@gcc.gnu.org mpolacek@gcc.gnu.org
Wed Jan 7 08:21:00 GMT 2015


Author: mpolacek
Date: Wed Jan  7 08:21:50 2015
New Revision: 219279

URL: https://gcc.gnu.org/viewcvs?rev=219279&root=gcc&view=rev
Log:
	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++.

Added:
    trunk/gcc/testsuite/gcc.dg/pr64440.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/pr56607.c



More information about the Gcc-cvs mailing list