aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJanis Johnson <janis187@us.ibm.com>2008-08-25 20:18:08 +0000
committerJanis Johnson <janis@gcc.gnu.org>2008-08-25 20:18:08 +0000
commite57903b847ed740d541538d5c51d19879be2b825 (patch)
tree56a3429f0e6ad9409f8c5552629e5efbfebc7df8 /gcc/config
parentb704f034f4dd30a23310618efbc547abdfeabd9e (diff)
downloadgcc-e57903b847ed740d541538d5c51d19879be2b825.zip
gcc-e57903b847ed740d541538d5c51d19879be2b825.tar.gz
gcc-e57903b847ed740d541538d5c51d19879be2b825.tar.bz2
re PR target/36756 (g++.dg/tls-3.C ICE with section-anchors, unit-at-a-time, no-toplevel-reorder)
PR target/36756 * config/rs6000/rs6000.c (optimization_options): Don't default to section anchors without toplevel reorder. From-SVN: r139572
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/rs6000/rs6000.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 79ca119..83997ff 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -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;
}