OSDN Git Service

* c-common.c (warn_div_by_zero): New.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Oct 2001 18:14:31 +0000 (18:14 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 23 Oct 2001 18:14:31 +0000 (18:14 +0000)
commitbd08a4e696f9fc58eb5a47250566867849a358e4
treea86518d1f2373ba547d08bd0867d006b5db75f24
parent753a360f09c905c575eb1a106827a2e74c2e6bdc
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46439 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-decl.c
gcc/c-typeck.c
gcc/doc/invoke.texi
gcc/testsuite/gcc.dg/divbyzero.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/noncompile/20010524-1.c