|
From: <sv...@va...> - 2006-08-28 21:13:10
|
Author: sewardj
Date: 2006-08-28 22:13:06 +0100 (Mon, 28 Aug 2006)
New Revision: 6036
Log:
Make this file a bit more 'gcc -ansi -pedantic' friendly (bug #132722).
Modified:
trunk/include/valgrind.h
Modified: trunk/include/valgrind.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/valgrind.h 2006-08-28 18:53:25 UTC (rev 6035)
+++ trunk/include/valgrind.h 2006-08-28 21:13:06 UTC (rev 6036)
@@ -2297,7 +2297,7 @@
/* Stack support. */
VG_USERREQ__STACK_REGISTER =3D 0x1501,
VG_USERREQ__STACK_DEREGISTER =3D 0x1502,
- VG_USERREQ__STACK_CHANGE =3D 0x1503,
+ VG_USERREQ__STACK_CHANGE =3D 0x1503
} Vg_ClientRequest;
=20
#if !defined(__GNUC__)
@@ -2377,6 +2377,7 @@
/* These requests allow control to move from the simulated CPU to the
real CPU, calling an arbitary function */
#define VALGRIND_NON_SIMD_CALL0(_qyy_fn) \
+ __extension__ \
({unsigned long _qyy_res; \
VALGRIND_DO_CLIENT_REQUEST(_qyy_res, 0 /* default return */, \
VG_USERREQ__CLIENT_CALL0, \
@@ -2386,6 +2387,7 @@
})
=20
#define VALGRIND_NON_SIMD_CALL1(_qyy_fn, _qyy_arg1) \
+ __extension__ \
({unsigned long _qyy_res; \
VALGRIND_DO_CLIENT_REQUEST(_qyy_res, 0 /* default return */, \
VG_USERREQ__CLIENT_CALL1, \
@@ -2395,6 +2397,7 @@
})
=20
#define VALGRIND_NON_SIMD_CALL2(_qyy_fn, _qyy_arg1, _qyy_arg2) \
+ __extension__ \
({unsigned long _qyy_res; \
VALGRIND_DO_CLIENT_REQUEST(_qyy_res, 0 /* default return */, \
VG_USERREQ__CLIENT_CALL2, \
@@ -2404,6 +2407,7 @@
})
=20
#define VALGRIND_NON_SIMD_CALL3(_qyy_fn, _qyy_arg1, _qyy_arg2, _qyy_arg3=
) \
+ __extension__ \
({unsigned long _qyy_res; \
VALGRIND_DO_CLIENT_REQUEST(_qyy_res, 0 /* default return */, \
VG_USERREQ__CLIENT_CALL3, \
@@ -2418,6 +2422,7 @@
the tool must record the errors with VG_(maybe_record_error)() or
VG_(unique_error)() for them to be counted. */
#define VALGRIND_COUNT_ERRORS \
+ __extension__ \
({unsigned int _qyy_res; \
VALGRIND_DO_CLIENT_REQUEST(_qyy_res, 0 /* default return */, \
VG_USERREQ__COUNT_ERRORS, \
|