From b534dca5618e74e4d22ab43d9c809e05d36795da Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 15 Oct 2010 13:40:56 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eb67d491727..3f449f7f61d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-10-15 Joseph Myers + + * config/rs6000/rs6000.c (rs6000_option_optimization): Don't + disable section anchors for lang_hooks.name[4] != 'O'. + 2010-10-15 Joseph Myers * config/frv/frv.c (frv_option_optimization, diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index f008c2dedfb..3afedd20187 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; } -- 2.30.2