diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-08 22:23:17 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-06-08 22:23:17 +0000 |
commit | f13da317dd6b47dda5beac471ffe04cad10c06d3 (patch) | |
tree | 61d23dcdc1b08a74306174e75f6690abbe62765a /gcc/config/darwin.h | |
parent | 83fc880a0a129be00a9e194b237c35a9b142a545 (diff) | |
download | gcc-f13da317dd6b47dda5beac471ffe04cad10c06d3.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114498 138bc75d-0d04-0410-961f-82ee72b054a4
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 dcfab427bdc..941f60b357d 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 */ |