aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.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/darwin.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/darwin.c')
-rw-r--r--gcc/config/darwin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 5ffe744..541b772 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -1524,6 +1524,8 @@ darwin_binds_local_p (tree decl)
return default_binds_local_p_1 (decl, 0);
}
+#if 0
+/* See TARGET_ASM_OUTPUT_ANCHOR for why we can't do this yet. */
/* The Darwin's implementation of TARGET_ASM_OUTPUT_ANCHOR. Define the
anchor relative to ".", the current section position. We cannot use
the default one because ASM_OUTPUT_DEF is wrong for Darwin. */
@@ -1536,6 +1538,7 @@ darwin_asm_output_anchor (rtx symbol)
fprintf (asm_out_file, ", . + " HOST_WIDE_INT_PRINT_DEC "\n",
SYMBOL_REF_BLOCK_OFFSET (symbol));
}
+#endif
/* Set the darwin specific attributes on TYPE. */
void