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/darwin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/config/darwin.c') 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 -- cgit v1.1