|
From: Jeremy F. <je...@go...> - 2004-12-04 01:08:17
|
CVS commit by fitzhardinge: If we have included valgrind.h, but are not compiling for a supported target architecture, don't emit any inline asms. M +11 -0 valgrind.h.in 1.5 --- valgrind/include/valgrind.h.in #1.4:1.5 @@ -65,4 +65,15 @@ #define __@VG_ARCH@__ 1 // Architecture we're installed on + +/* If we're not compiling for our target architecture, don't generate + any inline asms. This would be a bit neater if we used the same + CPP symbols as the compiler for identifying architectures. */ +#if !(__x86__ && __i386__) +# ifndef NVALGRIND +# define NVALGRIND 1 +# endif /* NVALGRIND */ +#endif + + /* This file is for inclusion into client (your!) code. |