aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/rs6000.c
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2006-06-08 22:23:17 +0000
committerMike Stump <mrs@gcc.gnu.org>2006-06-08 22:23:17 +0000
commit23f99493bc7682649148bb438f9047bb8b59c5dc (patch)
tree61d23dcdc1b08a74306174e75f6690abbe62765a /gcc/config/rs6000/rs6000.c
parent07ea59afb113a51ecb305f3a94f9bebbcaffb6b6 (diff)
downloadgcc-23f99493bc7682649148bb438f9047bb8b59c5dc.zip
gcc-23f99493bc7682649148bb438f9047bb8b59c5dc.tar.gz
gcc-23f99493bc7682649148bb438f9047bb8b59c5dc.tar.bz2
re PR target/26427 (with -fsection-anchors with zero sized structs)
PR target/26427 * config/darwin.c (darwin_asm_output_anchor): Disable -fsection-anchors on darwin for now. * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise. * rs6000/rs6000.c (optimization_options): Likewise. testsuite: * gcc.dg/pr26427.c: Test to ensure that -fsection-anchors doesn't produce bad code on darwin. From-SVN: r114498
Diffstat (limited to 'gcc/config/rs6000/rs6000.c')
-rw-r--r--gcc/config/rs6000/rs6000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 3a8e78a..dd41f62 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -1633,7 +1633,7 @@ 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 (lang_hooks.name[4] != 'O')
+ if (!TARGET_MACHO && lang_hooks.name[4] != 'O')
flag_section_anchors = 1;
}