rs6000.c (rs6000_option_optimization): Don't disable section anchors for lang_hooks...
authorJoseph Myers <joseph@codesourcery.com>
Fri, 15 Oct 2010 12:40:56 +0000 (13:40 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 15 Oct 2010 12:40:56 +0000 (13:40 +0100)
* config/rs6000/rs6000.c (rs6000_option_optimization): Don't
disable section anchors for lang_hooks.name[4] != 'O'.

From-SVN: r165506

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

index eb67d49..3f449f7 100644 (file)
@@ -1,5 +1,10 @@
 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
 
+       * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
+       disable section anchors for lang_hooks.name[4] != 'O'.
+
+2010-10-15  Joseph Myers  <joseph@codesourcery.com>
+
        * config/frv/frv.c (frv_option_optimization,
        TARGET_OPTION_OPTIMIZATION): Remove.
        * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
index f008c2d..3afedd2 100644 (file)
@@ -3690,10 +3690,8 @@ rs6000_option_optimization (int level ATTRIBUTE_UNUSED,
        avoid calling them when that's the only reason we would.  */
     flag_errno_math = 0;
 
-  /* 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')
+  /* Enable section anchors by default.  */
+  if (!TARGET_MACHO)
     flag_section_anchors = 2;
 }