mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Build fixes for AIX5.3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8013
This commit is contained in:
parent
c2de8fa58b
commit
15dfc7886d
@ -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 },
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user