OSDN Git Service

compiler, runtime: Add explicit checks for zero and overflow division.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2012 19:22:40 +0000 (19:22 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2012 19:22:40 +0000 (19:22 +0000)
commit776d05aa7e02667c0a978f231c2936f6302d3465
tree2fc27baa33b944d0a456dd92b42b6b84ece38721
parent05d538781013d9016058789610d1286a5bd553df
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@186638 138bc75d-0d04-0410-961f-82ee72b054a4
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