aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2020-04-23 17:49:01 -0600
committerMartin Sebor <msebor@redhat.com>2020-04-23 17:49:01 -0600
commitae962e573ea5063fda7e86f93d9622e64cea9a7e (patch)
treee2c1a0c04443a7035e2e1adc33dc560057a92477 /gcc/common.opt
parent9a453da5cac7b6610cd342a7bea256acba5e61e1 (diff)
downloadgcc-ae962e573ea5063fda7e86f93d9622e64cea9a7e.zip
gcc-ae962e573ea5063fda7e86f93d9622e64cea9a7e.tar.gz
gcc-ae962e573ea5063fda7e86f93d9622e64cea9a7e.tar.bz2
PR driver/90983 - manual documents `-Wno-stack-usage` flag but it is unrecognized
gcc/ChangeLog: PR driver/90983 * common.opt (-Wno-frame-larger-than): New option. (-Wno-larger-than, -Wno-stack-usage): Same. gcc/testsuite/ChangeLog: PR driver/90983 * gcc.dg/Wframe-larger-than-3.c: New test. * gcc.dg/Wlarger-than4.c: New test. * gcc.dg/Wstack-usage.c: New test.
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 1e604ba..d33383b 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -601,6 +601,10 @@ Wframe-larger-than=
Common RejectNegative Joined Host_Wide_Int ByteSize Warning Var(warn_frame_larger_than_size) Init(HOST_WIDE_INT_MAX)
-Wframe-larger-than=<byte-size> Warn if a function's stack frame requires in excess of <byte-size>.
+Wno-frame-larger-than
+Common Alias(Wframe-larger-than=,18446744073709551615EiB,none) Warning
+Disable -Wframe-larger-than= warning. Equivalent to -Wframe-larger-than=<SIZE_MAX> or larger.
+
Wfree-nonheap-object
Common Var(warn_free_nonheap_object) Init(1) Warning
Warn when attempting to free a non-heap object.
@@ -631,6 +635,10 @@ Wlarger-than=
Common RejectNegative Joined Host_Wide_Int ByteSize Warning Var(warn_larger_than_size) Init(HOST_WIDE_INT_MAX)
-Wlarger-than=<byte-size> Warn if an object's size exceeds <byte-size>.
+Wno-larger-than
+Common Alias(Wlarger-than=,18446744073709551615EiB,none) Warning
+Disable -Wlarger-than= warning. Equivalent to -Wlarger-than=<SIZE_MAX> or larger.
+
Wnonnull-compare
Var(warn_nonnull_compare) Warning
Warn if comparing pointer parameter with nonnull attribute with NULL.
@@ -704,6 +712,10 @@ Wstack-usage=
Common Joined RejectNegative Host_Wide_Int ByteSize Var(warn_stack_usage) Warning Init(HOST_WIDE_INT_MAX)
-Wstack-usage=<byte-size> Warn if stack usage might exceed <byte-size>.
+Wno-stack-usage
+Common Alias(Wstack-usage=,18446744073709551615EiB,none) Warning
+Disable Wstack-usage= warning. Equivalent to Wstack-usage=<SIZE_MAX> or larger.
+
Wstrict-aliasing
Common Warning
Warn about code which might break strict aliasing rules.