diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-07-10 19:14:41 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-07-10 19:14:41 +0000 |
commit | a1e01ddb2efde63310ffee2338bd374c7a5ce214 (patch) | |
tree | a4278cfa5c64b609c18b40662a79582b5aac2ae7 /gnu/usr.bin | |
parent | 8f2ea803ac796a3190807b5cd9956236580241b7 (diff) |
Backport support for -Wframe-larger-than=N to base GCC
This is the flag name that modern GCC and Clang have de facto
standardized on for the functionality that we locally named
-Wstack-larger-than-N.
ok brad, miod
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/gcc/gcc/toplev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/usr.bin/gcc/gcc/toplev.c b/gnu/usr.bin/gcc/gcc/toplev.c index 822c51a7942..406813bfadc 100644 --- a/gnu/usr.bin/gcc/gcc/toplev.c +++ b/gnu/usr.bin/gcc/gcc/toplev.c @@ -4190,7 +4190,8 @@ decode_W_option (arg) warn_larger_than = larger_than_size != -1; } - else if ((option_value = skip_leading_substring (arg, "stack-larger-than-"))) + else if ((option_value = skip_leading_substring (arg, "stack-larger-than-")) + || (option_value = skip_leading_substring (arg, "frame-larger-than="))) { stack_larger_than_size = read_integral_parameter (option_value, arg - 2, -1); |