From 23f99493bc7682649148bb438f9047bb8b59c5dc Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Thu, 8 Jun 2006 22:23:17 +0000 Subject: 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 --- gcc/config/rs6000/rs6000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config/rs6000/rs6000.c') 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; } -- cgit v1.1