Avoid regtest failures on x86_64 and ppc64 when toolchains for the
seconday platform (x86 and ppc32, respectively) is not available.
Add -DVGA_SEC_xxxxx and -DVGP_SEC_... to the GCC command line
indicating that a seconday platform is supported. Make arch_test.c
recognise those flags.
Fixes bugzilla #296983.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12556 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/arch_test.c b/tests/arch_test.c
index 4263c89..6f3d944 100644
--- a/tests/arch_test.c
+++ b/tests/arch_test.c
@@ -38,7 +38,9 @@
    if ( 0 == strcmp( arch, "x86"   ) ) return True;
 
 #elif defined(VGP_amd64_linux) || defined(VGP_amd64_darwin)
+#if defined(VGA_SEC_x86)
    if ( 0 == strcmp( arch, "x86"   ) ) return True;
+#endif
    if ( 0 == strcmp( arch, "amd64" ) ) return True;
 
 #elif defined(VGP_ppc32_linux)
@@ -46,7 +48,9 @@
 
 #elif defined(VGP_ppc64_linux)
    if ( 0 == strcmp( arch, "ppc64" ) ) return True;
+#if defined(VGA_SEC_ppc32)
    if ( 0 == strcmp( arch, "ppc32" ) ) return True;
+#endif
 
 #elif defined(VGP_s390x_linux)
    if ( 0 == strcmp( arch, "s390x" ) ) return True;