diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-27 23:02:39 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-27 23:02:39 +0000 |
commit | 975d636c1fc5cb9329165f36746f24aab5bf0c38 (patch) | |
tree | cfb4cd621b8390f148fe008b597f52830668a28b /fixincludes/inclhack.def | |
parent | c160ce689a3be11376ee979a6a1f8cfbe2842af4 (diff) | |
download | gcc-975d636c1fc5cb9329165f36746f24aab5bf0c38.tar.gz |
Index: fixincludes/ChangeLog
2004-10-27 Geoffrey Keating <geoffk@apple.com>
* inclhack.def (darwin_gcc4_breakage): New.
* fixincl.x: Regenerate.
Index: gcc/ChangeLog
2004-10-27 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/rs6000.c (rs6000_attribute_table): Add
SUBTARGET_ATTRIBUTE_TABLE.
* config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
(SUBTARGET_ATTRIBUTE_TABLE): Define.
* config/darwin.c (darwin_handle_weak_import_attribute): New.
(HAVE_DEAD_STRIP): Delete.
(no_dead_strip): Don't test HAVE_DEAD_STRIP.
* config/darwin-protos.h (darwin_handle_weak_import_attribute):
Prototype.
Index: gcc/testsuite/ChangeLog
2004-10-27 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/darwin-weakimport-1.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89716 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 38021c33957..00c5ae6aba3 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -978,6 +978,23 @@ fix = { /* + * AvailabilityMacros.h on Darwin breaks with GCC 4.0, because of + * bad __GNUC__ tests. + */ + +fix = { + hackname = darwin_gcc4_breakage; + mach = "*-*-darwin*"; + files = AvailabilityMacros.h; + select = "\\(__GNUC__ >= 3\\) && \\(__GNUC_MINOR__ >= 1\\)"; + c_fix = format; + c_fix_arg = "((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))"; + test_text = "#if defined(__GNUC__) && (__GNUC__ >= 3) && " + "(__GNUC_MINOR__ >= 1)\n"; +}; + + +/* * __private_extern__ doesn't exist in FSF GCC. Even if it did, * why would you ever put it in a system header file? */ |