diff options
author | Ian Lance Taylor <iant@google.com> | 2012-04-20 19:21:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-04-20 19:21:39 +0000 |
commit | 63d1e46df06893b073418be4e27f95eebd05ba26 (patch) | |
tree | c10e54920198d7e76b320d82626dc392302ee553 /gcc/go/lang.opt | |
parent | 0e27a180fd0f9270bcfacec0b4940283eaf6eb61 (diff) | |
download | gcc-63d1e46df06893b073418be4e27f95eebd05ba26.zip gcc-63d1e46df06893b073418be4e27f95eebd05ba26.tar.gz gcc-63d1e46df06893b073418be4e27f95eebd05ba26.tar.bz2 |
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
Diffstat (limited to 'gcc/go/lang.opt')
-rw-r--r-- | gcc/go/lang.opt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/go/lang.opt b/gcc/go/lang.opt index 96c8d73..c14df9c 100644 --- a/gcc/go/lang.opt +++ b/gcc/go/lang.opt @@ -1,6 +1,6 @@ ; lang.opt -- Options for the gcc Go front end. -; Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. +; Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. ; ; This file is part of GCC. ; @@ -37,6 +37,14 @@ Wall Go ; Documented in c.opt +fgo-check-divide-zero +Go Var(go_check_divide_zero) Init(1) +Add explicit checks for division by zero + +fgo-check-divide-overflow +Go Var(go_check_divide_overflow) Init(1) +Add explicit checks for division overflow in INT_MIN / -1 + fgo-dump- Go Joined RejectNegative -fgo-dump-<type> Dump Go frontend internal information |