aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2016-06-13 18:59:43 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2016-06-13 14:59:43 -0400
commitd4f076c9b8f4288d748c871b5849146a518dee7b (patch)
tree5b6e2d235f4cd3fd8e7fc9fd9a59a720172cb3d1 /fixincludes/tests
parent0ac249bf93d84c213d8bdf40bf3f310d5df0b238 (diff)
downloadgcc-d4f076c9b8f4288d748c871b5849146a518dee7b.zip
gcc-d4f076c9b8f4288d748c871b5849146a518dee7b.tar.gz
gcc-d4f076c9b8f4288d748c871b5849146a518dee7b.tar.bz2
inclhack.def (aix_stdlib_malloc): New fix.
* inclhack.def (aix_stdlib_malloc): New fix. (aix_stdlib_realloc): New fix. (aix_stdlib_calloc): New fix. (aix_stdlib_valloc): New fix. * fixincl.x: Regenerate. * test/base/stdlib.h [AIX_STDLIB_MALLOC]: New test. [AIX_STDLIB_REALLOC]: New test. [AIX_STDLIB_CALLOC]: New test. [AIX_STDLIB_VALLOC]: New test. From-SVN: r237394
Diffstat (limited to 'fixincludes/tests')
-rw-r--r--fixincludes/tests/base/stdlib.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/fixincludes/tests/base/stdlib.h b/fixincludes/tests/base/stdlib.h
index 2f91e07..cee7e5d 100644
--- a/fixincludes/tests/base/stdlib.h
+++ b/fixincludes/tests/base/stdlib.h
@@ -9,6 +9,26 @@
+#if defined( AIX_STDLIB_MALLOC_CHECK )
+extern void *malloc(size_t) __asm__("__linux_malloc");
+#endif /* AIX_STDLIB_MALLOC_CHECK */
+
+
+#if defined( AIX_STDLIB_REALLOC_CHECK )
+extern void *realloc(void *, size_t) __asm__("__linux_realloc");
+#endif /* AIX_STDLIB_REALLOC_CHECK */
+
+
+#if defined( AIX_STDLIB_CALLOC_CHECK )
+extern void *calloc(size_t, size_t) __asm__("__linux_calloc");
+#endif /* AIX_STDLIB_CALLOC_CHECK */
+
+
+#if defined( AIX_STDLIB_VALLOC_CHECK )
+extern void *valloc(size_t) __asm__("__linux_valloc");
+#endif /* AIX_STDLIB_VALLOC_CHECK */
+
+
#if defined( AIX_STRTOF_CONST_CHECK )
extern float strtof(const char *, char **);
#endif /* AIX_STRTOF_CONST_CHECK */