aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-10-15 13:40:56 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2010-10-15 13:40:56 +0100
commitb534dca5618e74e4d22ab43d9c809e05d36795da (patch)
tree0b3badbdae2ce4042f1231e326e241a501ea9e0e
parent25b0dd68f0aa19b8aa8db4c36a51e456c31c20cd (diff)
downloadgcc-b534dca5618e74e4d22ab43d9c809e05d36795da.zip
gcc-b534dca5618e74e4d22ab43d9c809e05d36795da.tar.gz
gcc-b534dca5618e74e4d22ab43d9c809e05d36795da.tar.bz2
rs6000.c (rs6000_option_optimization): Don't disable section anchors for lang_hooks.name[4] != 'O'.
* config/rs6000/rs6000.c (rs6000_option_optimization): Don't disable section anchors for lang_hooks.name[4] != 'O'. From-SVN: r165506
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eb67d49..3f449f7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index f008c2d..3afedd2 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -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;
}