invoke.texi (Optimize Options): Document that -fgcse may cause programs using compute...
authorBrad Lucier <lucier@math.purdue.edu>
Thu, 5 Jul 2001 19:38:30 +0000 (19:38 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Thu, 5 Jul 2001 19:38:30 +0000 (19:38 +0000)
* doc/invoke.texi (Optimize Options): Document that -fgcse may
cause programs using computed gotos to run more slowly.

Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
From-SVN: r43786

gcc/ChangeLog
gcc/doc/invoke.texi

index f67f0ea54091a8602418192f7cc2498300e0178c..2c8be244f8ebd793679eec7f4c7e6c1de9139a9c 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-05  Brad Lucier <lucier@math.purdue.edu>
+           Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
+
+       * doc/invoke.texi (Optimize Options): Document that -fgcse may
+       cause programs using computed gotos to run more slowly.
+
 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        * doc/install.texi (Specific): Markup, spelling and typo fixes.
index c21137e86cab9db3f69829a80b5e1817852d3d54..18c054f49639a4e0deed75155ba8b36f29c9598a 100644 (file)
@@ -3189,6 +3189,9 @@ function inlining, and register renaming.  It also turns on the
 @option{-fforce-mem} option on all machines and frame pointer elimination
 on machines where doing so does not interfere with debugging.
 
+Please note the warning under @option{-fgcse} about
+invoking @option{-O2} on programs that use computed gotos.
+
 @item -O3
 @opindex O3
 Optimize yet more.  @option{-O3} turns on all optimizations specified by
@@ -3466,6 +3469,11 @@ Run the loop optimizer twice.
 Perform a global common subexpression elimination pass.
 This pass also performs global constant and copy propagation.
 
+@emph{Note:} When compiling a program using computed gotos, a GCC
+extension, you may get better runtime performance if you disable
+the global common subexpression elmination pass by adding
+@option{-fno-gcse} to the command line.
+
 @item -fgcse-lm
 @opindex fgcse-lm
 When @option{-fgcse-lm} is enabled, global common subexpression elimination will