]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xtensa.h (OPTIMIZATION_OPTIONS): Define to disable flag_reorder_blocks.
authorBob Wilson <bob.wilson@acm.org>
Fri, 29 Apr 2005 16:40:52 +0000 (16:40 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Fri, 29 Apr 2005 16:40:52 +0000 (16:40 +0000)
* config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
flag_reorder_blocks.

From-SVN: r99000

gcc/ChangeLog
gcc/config/xtensa/xtensa.h

index 16e3565911935ff610d9a761a130752ed08d6b4c..bc9b0e6fbce52fc9fb72daef038a2a87c8565b63 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-29  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
+       flag_reorder_blocks.
+
 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
 
        PR tree-optimization/21030
index 9f2f7d63399dd099420273da2fbec7559a295c0a..bfe0be1d3874f56d34cee91a0ca8d01edda5cea5 100644 (file)
@@ -65,6 +65,19 @@ extern unsigned xtensa_current_frame_size;
   (XCHAL_HAVE_L32R     ? 0 : MASK_CONST16))
 
 #define OVERRIDE_OPTIONS override_options ()
+
+/* Reordering blocks for Xtensa is not a good idea unless the compiler
+   understands the range of conditional branches.  Currently all branch
+   relaxation for Xtensa is handled in the assembler, so GCC cannot do a
+   good job of reordering blocks.  Do not enable reordering unless it is
+   explicitly requested.  */
+#define OPTIMIZATION_OPTIONS(LEVEL, SIZE)                              \
+  do                                                                   \
+    {                                                                  \
+      flag_reorder_blocks = 0;                                         \
+    }                                                                  \
+  while (0)
+
 \f
 /* Target CPU builtins.  */
 #define TARGET_CPU_CPP_BUILTINS()                                      \