summaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-22 07:22:07 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-22 07:22:07 +0000
commit3ad51423b8343b496d168aa979a7a87f0a7cad67 (patch)
treeaeb1f76a6793c86109041c2fad56320edbf89a4e /gcc/flags.h
parent7ca3fb038bef6d5a8e269337e3c328136c55358a (diff)
downloadgcc-3ad51423b8343b496d168aa979a7a87f0a7cad67.tar.gz
* toplev.c (warn_disabled_optimization): Declare new warning flag.
* flags.h (warn_disabled_optimization): Add it here. * gcse.c (gcse_main): Add warning when disabled. * invoke.texi: Document -Wdisabled-optimization git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36568 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index 8fa2e87d00c..6a87edb8e63 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -160,6 +160,10 @@ extern int warn_packed;
extern int warn_padded;
+/* Warn when an optimization pass is disabled. */
+
+extern int warn_disabled_optimization;
+
/* Nonzero if generating code to do profiling. */
extern int profile_flag;