From 0560f6fcfd36f3719dcbe06cb0804a991b10c41f Mon Sep 17 00:00:00 2001 From: dje Date: Fri, 23 Mar 2012 23:55:01 +0000 Subject: * 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 --- fixincludes/inclhack.def | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'fixincludes/inclhack.def') diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 2d632b32d0f..8a26f2837ba 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -369,6 +369,19 @@ fix = { test_text = "#define _Complex_I __I\n"; }; +/* + * 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 -- cgit v1.2.1