-
- Downloads
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
Showing
- gcc/ChangeLog 5 additions, 0 deletionsgcc/ChangeLog
- gcc/c-opts.c 0 additions, 4 deletionsgcc/c-opts.c
- gcc/c.opt 1 addition, 1 deletiongcc/c.opt
- gcc/cp/ChangeLog 5 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/typeck.c 4 additions, 4 deletionsgcc/cp/typeck.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/warn/Wdiv-by-zero.C 7 additions, 0 deletionsgcc/testsuite/g++.dg/warn/Wdiv-by-zero.C
- gcc/testsuite/g++.dg/warn/Wno-div-by-zero.C 8 additions, 0 deletionsgcc/testsuite/g++.dg/warn/Wno-div-by-zero.C
Loading
Please register or sign in to comment