Build fixes for AIX5.3.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8013
This commit is contained in:
Julian Seward 2008-05-06 23:01:05 +00:00
parent c2de8fa58b
commit 15dfc7886d
2 changed files with 18 additions and 3 deletions

View File

@ -15,8 +15,14 @@ void* VG_(malloc)(SizeT nbytes)
void VG_(free)(void* p)
{ return free(p); }
void VG_(assert_fail)(Bool isCore, const Char* expr, const Char* file,
Int line, const Char* fn, const HChar* format, ...)
{ __assert_fail(expr, file, line, fn); abort(); }
Int line, const Char* fn, const HChar* format, ...) {
#if defined(__linux__)
__assert_fail(expr, file, line, fn); abort();
#else
assert(0);
#endif /* __linux__ */
}
void* VG_(memset)(void *s, Int c, SizeT sz)
{ return memset(s, c, sz); }
void* VG_(memcpy)(void *d, const void *s, SizeT sz)
@ -46,7 +52,7 @@ struct { Addr address; SizeT size; BmAccessTypeT access_type; }
{ 0x0001ffffULL, 1, eLoad },
{ 0x00ffffffULL, 1, eLoad },
{ 0xfffffffeULL - ADDR0_COUNT, 1, eStore },
#if defined(VGP_amd64_linux) || defined(VGP_ppc64_linux)
#if defined(VGP_amd64_linux) || defined(VGP_ppc64_linux) || defined(VGP_ppc64_aix5)
{ 0xffffffffULL - ADDR0_COUNT, 1, eStore },
{ 0xffffffffULL, 1, eStore },
{ 0x100000000ULL, 1, eStore },

View File

@ -298,3 +298,12 @@ int main(int ac, char **av)
}
#endif /* __linux__ */
#if defined(_AIX)
#include <stdio.h>
int main(int ac, char **av)
{
fprintf(stderr, "This test does not work on AIX5.\n");
return 0;
}
#endif /* _AIX */