diff options
| author | Mike Stump <mrs@apple.com> | 2006-06-08 22:23:17 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@gcc.gnu.org> | 2006-06-08 22:23:17 +0000 |
| commit | 23f99493bc7682649148bb438f9047bb8b59c5dc (patch) | |
| tree | 61d23dcdc1b08a74306174e75f6690abbe62765a /gcc/config/darwin.h | |
| parent | 07ea59afb113a51ecb305f3a94f9bebbcaffb6b6 (diff) | |
| download | gcc-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.h')
| -rw-r--r-- | gcc/config/darwin.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index dcfab42..941f60b 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -812,8 +812,6 @@ enum machopic_addr_class { goto DONE; \ } -#define TARGET_ASM_OUTPUT_ANCHOR darwin_asm_output_anchor - /* Experimentally, putting jump tables in text is faster on SPEC. Also this is needed for correctness for coalesced functions. */ @@ -852,6 +850,7 @@ void add_framework_path (char *); #define TARGET_POSIX_IO /* All new versions of Darwin have C99 functions. */ + #define TARGET_C99_FUNCTIONS 1 #define WINT_TYPE "int" @@ -859,7 +858,20 @@ void add_framework_path (char *); /* Every program on darwin links against libSystem which contains the pthread routines, so there's no need to explicitly call out when doing threaded work. */ + #undef GOMP_SELF_SPECS #define GOMP_SELF_SPECS "" +/* Darwin can't support anchors until we can cope with the adjustments + to size that ASM_DECLARE_OBJECT_NAME and ASM_DECLARE_CONSTANT_NAME + when outputting members of an anchor block and the linker can be + taught to keep them together or we find some other suitable + code-gen technique. */ + +#if 0 +#define TARGET_ASM_OUTPUT_ANCHOR darwin_asm_output_anchor +#else +#define TARGET_ASM_OUTPUT_ANCHOR NULL +#endif + #endif /* CONFIG_DARWIN_H */ |
