]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/36756 (g++.dg/tls-3.C ICE with section-anchors, unit-at-a-time, no-tople...
authorJanis Johnson <janis187@us.ibm.com>
Mon, 25 Aug 2008 20:18:08 +0000 (20:18 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Mon, 25 Aug 2008 20:18:08 +0000 (20:18 +0000)
PR target/36756
* config/rs6000/rs6000.c (optimization_options): Don't default to
section anchors without toplevel reorder.

From-SVN: r139572

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index f38c298043d9eb0115a73e0bfcdaab7166a72bb8..7db55b34106a447ff92ad89471216173a4071a47 100644 (file)
@@ -1,3 +1,9 @@
+2008-08-25  Janis Johnson  <janis187@us.ibm.com>
+
+       PR target/36756
+       * config/rs6000/rs6000.c (optimization_options): Don't default to
+       section anchors without toplevel reorder.
+
 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
index 79ca119bd5fa8c34a9bdcdea23d75ff850a2e923..83997ff2a0df35f4638edc75af9f5445f7e6a93a 100644 (file)
@@ -2128,8 +2128,11 @@ optimization_options (int level ATTRIBUTE_UNUSED, int size ATTRIBUTE_UNUSED)
 
   /* Enable section anchors by default.
      Skip section anchors for Objective C and Objective C++
-     until front-ends fixed.  */
-  if (!TARGET_MACHO && lang_hooks.name[4] != 'O')
+     until front-ends fixed.
+     Do not enable section anchors without toplevel reorder.  */
+  if (!TARGET_MACHO
+      && lang_hooks.name[4] != 'O'
+      && flag_toplevel_reorder != 0)
     flag_section_anchors = 2;
 }