aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2018-02-22 16:12:26 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2018-02-22 11:12:26 -0500
commit58730d1899b1deb723c0b13984fda1768ae73408 (patch)
treeced2104e8e7b7b50c8d87cedf7b0239bfd923427 /fixincludes/inclhack.def
parenta11f3649d785265672d61d63d099f4a445c41c45 (diff)
downloadgcc-58730d1899b1deb723c0b13984fda1768ae73408.zip
gcc-58730d1899b1deb723c0b13984fda1768ae73408.tar.gz
gcc-58730d1899b1deb723c0b13984fda1768ae73408.tar.bz2
inclhack.def (aix_stdlib_vec_malloc): New.
* inclhack.def (aix_stdlib_vec_malloc): New. (aix_stdlib_vec_calloc): New. * fixincl.x: Regenerate. * tests/base/stdlib.h [AIX_STDLIB_VEC_MALLOC]: New test. [AIX_STDLIB_VEC_CALLOC]: New test. From-SVN: r257902
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def20
1 files changed, 20 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index fd0034f..77444db 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -838,6 +838,26 @@ fix = {
test_text = "#define valloc __linux_valloc";
};
+fix = {
+ hackname = aix_stdlib_vec_malloc;
+ mach = "*-*-aix*";
+ files = stdlib.h;
+ select = "#define[ \t]+malloc[ \t]+vec_malloc";
+ c_fix = format;
+ c_fix_arg = "extern void *malloc(size_t) __asm__(\"vec_malloc\");";
+ test_text = "#define malloc vec_malloc";
+};
+
+fix = {
+ hackname = aix_stdlib_vec_calloc;
+ mach = "*-*-aix*";
+ files = stdlib.h;
+ select = "#define[ \t]+calloc[ \t]+vec_calloc";
+ c_fix = format;
+ c_fix_arg = "extern void *calloc(size_t, size_t) __asm__(\"vec_calloc\");";
+ test_text = "#define calloc vec_calloc";
+};
+
/*
* stdlib.h on AIX 4.3 declares strtof() with a non-const first argument.
*/