diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-09-04 15:59:21 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-09-04 15:59:21 +0000 |
commit | 075e268e81bc06cc89109484c501474a440203b2 (patch) | |
tree | d59a67a3af8ffb953b4c43e0782fba0f8d4919e7 /gcc/doc | |
parent | a12cbc5775e85403cd8ed244c8f45b506afd294b (diff) | |
download | gcc-075e268e81bc06cc89109484c501474a440203b2.zip gcc-075e268e81bc06cc89109484c501474a440203b2.tar.gz gcc-075e268e81bc06cc89109484c501474a440203b2.tar.bz2 |
Document ftrapv/fwrapv interaction
2015-09-04 Tom de Vries <tom@codesourcery.com>
* doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
From-SVN: r227494
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index d7dc64e..76e5e29 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -23696,6 +23696,11 @@ option is used to control the temporary stack reuse optimization. @opindex ftrapv This option generates traps for signed overflow on addition, subtraction, multiplication operations. +The options @option{-ftrapv} and @option{-fwrapv} override each other, so using +@option{-ftrapv} @option{-fwrapv} on the command-line results in +@option{-fwrapv} being effective. Note that only active options override, so +using @option{-ftrapv} @option{-fwrapv} @option{-fno-wrapv} on the command-line +results in @option{-ftrapv} being effective. @item -fwrapv @opindex fwrapv @@ -23704,6 +23709,11 @@ overflow of addition, subtraction and multiplication wraps around using twos-complement representation. This flag enables some optimizations and disables others. This option is enabled by default for the Java front end, as required by the Java language specification. +The options @option{-ftrapv} and @option{-fwrapv} override each other, so using +@option{-ftrapv} @option{-fwrapv} on the command-line results in +@option{-fwrapv} being effective. Note that only active options override, so +using @option{-ftrapv} @option{-fwrapv} @option{-fno-wrapv} on the command-line +results in @option{-ftrapv} being effective. @item -fexceptions @opindex fexceptions |