|
From: Nicholas N. <nj...@cs...> - 2005-06-28 19:47:26
|
SVN commit 429765 by nethercote:
Don't use non-ansi features in valgrind.h in case it's used in a file =
=20
compiled with -ansi. Added a regtest for it. Fixed bug #103182. =20
MERGED FROM 3.0 REPOSITORY
M +4 -4 valgrind.h.in =20
--- trunk/valgrind/include/valgrind.h.in #429764:429765
@@ -61,7 +61,7 @@
#include <stdarg.h>
=20
#undef __@VG_ARCH@__
-#define __@VG_ARCH@__ 1 // Architecture we're installed on
+#define __@VG_ARCH@__ 1 /* Architecture we're installed on */
=20
=20
/* If we're not compiling for our target architecture, don't generate
@@ -119,7 +119,7 @@
_zzq_args[2] =3D (unsigned int)(_zzq_arg2); \
_zzq_args[3] =3D (unsigned int)(_zzq_arg3); \
_zzq_args[4] =3D (unsigned int)(_zzq_arg4); \
- asm volatile("roll $29, %%eax ; roll $3, %%eax\n\t" \
+ __asm__ volatile("roll $29, %%eax ; roll $3, %%eax\n\t" \
"rorl $27, %%eax ; rorl $5, %%eax\n\t" \
"roll $13, %%eax ; roll $19, %%eax" \
: "=3Dd" (_zzq_rlval) \
@@ -127,9 +127,9 @@
: "cc", "memory" \
); \
}
-#endif // __x86__
+#endif /* __x86__ */
=20
-// Insert assembly code for other architectures here...
+/* Insert assembly code for other architectures here... */
=20
#else /* NVALGRIND */
/* Define NVALGRIND to completely remove the Valgrind magic sequence
|