This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/gcc c-common.c c-common.h c-decl.c c-typec ...
- To: gcc-cvs at gcc dot gnu dot org
- Subject: gcc/gcc c-common.c c-common.h c-decl.c c-typec ...
- From: neil at gcc dot gnu dot org
- Date: 23 Oct 2001 18:14:32 -0000
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: neil@gcc.gnu.org 2001-10-23 11:14:31
Modified files:
gcc : c-common.c c-common.h c-decl.c c-typeck.c
ChangeLog
gcc/doc : invoke.texi
gcc/testsuite/gcc.dg/noncompile: 20010524-1.c
Added files:
gcc/testsuite/gcc.dg: divbyzero.c
Log message:
* c-common.c (warn_div_by_zero): New.
* c-common.h (warn_div_by_zero): New.
* c-decl.c (c_decode_option): Take it on the command line.
* c-typeck.c (build_binary_op): Warn about division by zero.
* doc/invoke.texi: Document the new command line option, fix
documentation of -Wmultichar.
* testsuite/gcc.dg/divbyzero.c: New tests.
* testsuite/gcc.dg/noncompile/20010524-1.c: Update.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&r1=1.264&r2=1.265
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.h.diff?cvsroot=gcc&r1=1.90&r2=1.91
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.256&r2=1.257
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.141&r2=1.142
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=1.11629&r2=1.11630
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/invoke.texi.diff?cvsroot=gcc&r1=1.66&r2=1.67
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/divbyzero.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/noncompile/20010524-1.c.diff?cvsroot=gcc&r1=1.2&r2=1.3