diff options
author | Dirk Mueller <dmueller@suse.com> | 2006-02-07 19:41:14 +0000 |
---|---|---|
committer | Dirk Mueller <mueller@gcc.gnu.org> | 2006-02-07 19:41:14 +0000 |
commit | 1104b28bc84483a6e98335cc5369d089a56ec6ed (patch) | |
tree | 73d1c3e94726a3156bfd94997fc2db501ff46a43 /gcc/c.opt | |
parent | 7135d758bcdd76d68aa660f9082969f3443e652a (diff) | |
download | gcc-1104b28bc84483a6e98335cc5369d089a56ec6ed.zip gcc-1104b28bc84483a6e98335cc5369d089a56ec6ed.tar.gz gcc-1104b28bc84483a6e98335cc5369d089a56ec6ed.tar.bz2 |
c.opt: C++ frontend supports -Wdiv-by-zero.
2006-02-07 Dirk Mueller <dmueller@suse.com>
* c.opt: C++ frontend supports -Wdiv-by-zero.
* c-opts.c (c_common_handle_option): Remove dead case.
* typeck.c (build_binary_op): Annotate div-by-zero
warnings to make -Wno-div-by-zero have an effect.
g++.dg/warn/Wdiv-by-zero.C: New test.
g++.dg/warn/Wno-div-by-zero.C: New.
From-SVN: r110712
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -166,7 +166,7 @@ C++ ObjC++ Var(warn_deprecated) Init(1) Warn about deprecated compiler features Wdiv-by-zero -C ObjC Var(warn_div_by_zero) Init(1) +C ObjC C++ Var(warn_div_by_zero) Init(1) Warn about compile-time integer division by zero Weffc++ |