From 6af1d635447c364874a0c741d4704ea7549a439d Mon Sep 17 00:00:00 2001 From: vries Date: Fri, 4 Sep 2015 15:59:21 +0000 Subject: [PATCH] Document ftrapv/fwrapv interaction 2015-09-04 Tom de Vries * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227494 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/doc/invoke.texi | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a6f9f8f14ac..bc2b8609396 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-09-04 Tom de Vries + + * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction. + 2015-09-04 Jeff Law * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index d7dc64e46da..76e5e29450e 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 -- 2.11.4.GIT