]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler, runtime: Add explicit checks for zero and overflow division.
authorIan Lance Taylor <iant@google.com>
Fri, 20 Apr 2012 19:21:39 +0000 (19:21 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2012 19:21:39 +0000 (19:21 +0000)
commit63d1e46df06893b073418be4e27f95eebd05ba26
treec10e54920198d7e76b320d82626dc392302ee553
parent0e27a180fd0f9270bcfacec0b4940283eaf6eb61
compiler, runtime: Add explicit checks for zero and overflow division.

* lang.opt: Add -fgo-check-divide-zero and
-fgo-check-divide-overflow.
* gccgo.texi (Invoking gccgo): Document new options.

From-SVN: r186637
gcc/go/ChangeLog
gcc/go/gccgo.texi
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.h
gcc/go/lang.opt
libgo/runtime/go-runtime-error.c