aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index bb39324..e62e3d5 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -180,6 +180,14 @@ Wstrict-overflow=
Common Joined UInteger Var(warn_strict_overflow) Init(-1) Warning
Warn about optimizations that assume that signed overflow is undefined
+Wsuggest-attribute=const
+Common Var(warn_suggest_attribute_const) Warning
+Warn about functions which might be candidates for __attribute__((const))
+
+Wsuggest-attribute=pure
+Common Var(warn_suggest_attribute_pure) Warning
+Warn about functions which might be candidates for __attribute__((pure))
+
Wswitch
Common Var(warn_switch) Warning
Warn about enumerated switches, with no default, missing a case