summaryrefslogtreecommitdiffstats
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorcchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-18 21:33:41 +0000
committercchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-18 21:33:41 +0000
commitbec2d4909566b67347a964a8e1eb1918f772f873 (patch)
tree23acf9f52d85ebec426a6674cb36c94dab1cabb1 /gcc/toplev.c
parent03e2df8e7dc9d2f3f06bac67bc48e48783664aa7 (diff)
downloadppe42-gcc-bec2d4909566b67347a964a8e1eb1918f772f873.tar.gz
ppe42-gcc-bec2d4909566b67347a964a8e1eb1918f772f873.zip
Adding new option -ftrapv.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36942 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 66139638309..1dfa7f5cbf7 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -947,6 +947,8 @@ typedef struct
}
lang_independent_options;
+int flag_trapv = 0;
+
/* Add or remove a leading underscore from user symbols. */
int flag_leading_underscore = -1;
@@ -1145,6 +1147,8 @@ lang_independent_options f_options[] =
"Report time taken by each compiler pass at end of run"},
{"mem-report", &mem_report, 1,
"Report on permanent memory allocation at end of run"},
+ { "trapv", &flag_trapv, 1,
+ "Trap for signed overflow in addition / subtraction / multiplication." },
};
/* Table of language-specific options. */
OpenPOWER on IntegriCloud