diff options
author | Brad Lucier <lucier@math.purdue.edu> | 2000-09-22 07:22:07 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-09-22 07:22:07 +0000 |
commit | 18424ae17a3b474ac341c9e57e74c487dcdec15a (patch) | |
tree | aeb1f76a6793c86109041c2fad56320edbf89a4e /gcc/gcse.c | |
parent | 401219a6c93d1ba14cee07ed0ab7935f04072358 (diff) | |
download | gcc-18424ae17a3b474ac341c9e57e74c487dcdec15a.zip gcc-18424ae17a3b474ac341c9e57e74c487dcdec15a.tar.gz gcc-18424ae17a3b474ac341c9e57e74c487dcdec15a.tar.bz2 |
toplev.c (warn_disabled_optimization): Declare new warning flag.
* 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
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r36568
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -685,7 +685,12 @@ gcse_main (f, file) a couple switch statements. So we require a relatively large number of basic blocks and the ratio of edges to blocks to be high. */ if (n_basic_blocks > 1000 && n_edges / n_basic_blocks >= 20) - return 0; + { + if (warn_disabled_optimization) + warning ("GCSE disabled: %d > 1000 basic blocks and %d >= 20 edges/basic block", + n_basic_blocks, n_edges / n_basic_blocks); + return 0; + } /* See what modes support reg/reg copy operations. */ if (! can_copy_init_p) |