summaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-23 23:55:01 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-23 23:55:01 +0000
commit0560f6fcfd36f3719dcbe06cb0804a991b10c41f (patch)
treef3b1689604dee80aff915fe030f37ef1229e195c /fixincludes/inclhack.def
parent92b1062f0f08ba2e0f36f05fcfdcdbfc4303b4aa (diff)
downloadgcc-0560f6fcfd36f3719dcbe06cb0804a991b10c41f.tar.gz
* inclhack.def (aix_malloc): New.
* fixincl.x: Regenerate. * tests/base/malloc.h [AIX_MALLOC_CHECK]: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185752 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def13
1 files changed, 13 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 2d632b32d0f..8a26f2837ba 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -370,6 +370,19 @@ fix = {
};
/*
+ * malloc.h on AIX6 uses XLC++ specific builtin syntax
+ */
+fix = {
+ hackname = aix_malloc;
+ mach = "*-*-aix*";
+ files = "malloc.h";
+ select = "#ifdef __cplusplus";
+ c_fix = format;
+ c_fix_arg = "#if (defined(__cplusplus) && defined(__IBMCPP__))";
+ test_text = "#ifdef __cplusplus";
+};
+
+/*
* net/if_arp.h defines a variable fc_softc instead of adding a
* typedef for the struct on AIX 5.2, 5.3, 6.1 and 7.1
*/