diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-22 07:22:07 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-22 07:22:07 +0000 |
commit | 3ad51423b8343b496d168aa979a7a87f0a7cad67 (patch) | |
tree | aeb1f76a6793c86109041c2fad56320edbf89a4e /gcc/flags.h | |
parent | 7ca3fb038bef6d5a8e269337e3c328136c55358a (diff) | |
download | gcc-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.h | 4 |
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; |