summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-10-12 20:45:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-10-12 20:45:13 +0000
commit659eea2f8faaaa8d56bf7d3975db34c6f5d80894 (patch)
treeddea5fa6fee3e19f10691a48ed04652d959c0121 /gnu
parentbc1910b452482848a4b55d1b17bd7e6cf0f4ae86 (diff)
Recognize, and ignore, -fstack-shuffle, in gcc 3, so that it may be used in
the tree.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gcc/gcc/toplev.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/gcc/gcc/toplev.c b/gnu/usr.bin/gcc/gcc/toplev.c
index 406813bfadc..6e80bcc54ae 100644
--- a/gnu/usr.bin/gcc/gcc/toplev.c
+++ b/gnu/usr.bin/gcc/gcc/toplev.c
@@ -4143,9 +4143,10 @@ decode_f_option (arg)
flag_random_seed = option_value;
else if (!strcmp (arg, "no-random-seed"))
flag_random_seed = NULL;
- else if (!strcmp (arg, "preprocessed"))
- /* Recognize this switch but do nothing. This prevents warnings
- about an unrecognized switch if cpplib has not been linked in. */
+ else if (!strcmp (arg, "preprocessed") || !strcmp (arg, "stack-shuffle"))
+ /* Recognize these switches but do nothing. Allowing -fpreprocessed
+ prevents warnings about an unrecognized switch if cpplib has not been
+ linked in. */
;
else
return 0;