]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
#define HAS_ALTIVEC is now fetched from config.h instead of from Makefile.am.
authorBart Van Assche <bvanassche@acm.org>
Sun, 25 May 2008 16:43:15 +0000 (16:43 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 25 May 2008 16:43:15 +0000 (16:43 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8128

none/tests/ppc32/Makefile.am
none/tests/ppc32/jm-insns.c
none/tests/ppc64/Makefile.am

index 1ed0703452f20cc43dfb808351cd89e462ddcc4e..c593d580bd390818e165475460d843eba857b98f 100644 (file)
@@ -31,7 +31,6 @@ AM_CFLAGS   = $(WERROR) -Winline -Wall -Wshadow -g -I$(top_srcdir)/include \
                @FLAG_M32@
 AM_CXXFLAGS = $(AM_CFLAGS) @FLAG_M32@
 
-jm_insns_CFLAGS = -Winline -Wall -O -mregnames \
-                       -DHAS_ALTIVEC -maltivec @FLAG_M32@
+jm_insns_CFLAGS = -Winline -Wall -O -mregnames -maltivec @FLAG_M32@
 testVMX_CFLAGS  = -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \
                        -DGCC_COMPILER @FLAG_M32@
index 281ae114bfad7ac595767379b6d69555f8803240..d55c8751a424f7d2e2c542e2347e22ec5a659aca 100644 (file)
@@ -2,9 +2,9 @@
 /* HOW TO COMPILE:
 
 * 32bit build:
-   gcc -Winline -Wall -g -O -mregnames -DHAS_ALTIVEC -maltivec
+   gcc -Winline -Wall -g -O -mregnames -maltivec
 * 64bit build:
-   gcc -Winline -Wall -g -O -mregnames -DHAS_ALTIVEC -maltivec -m64
+   gcc -Winline -Wall -g -O -mregnames -maltivec -m64
 
 This program is useful, but the register usage conventions in
 it are a complete dog.  In particular, _patch_op_imm has to
@@ -219,7 +219,8 @@ register HWord_t r15 __asm__ ("r15");
 register HWord_t r16 __asm__ ("r16");
 register HWord_t r17 __asm__ ("r17");
 
-#if defined (HAS_ALTIVEC)
+#include "config.h"
+#if defined (HAVE_ALTIVEC_H)
 #   include <altivec.h>
 #endif
 #include <assert.h>
index 2f0892a6ae3800ab03ac0a82ebc8ff73061274d9..2bd2d96d4dbb33baa666460ec112bb3302925fea 100644 (file)
@@ -18,5 +18,4 @@ AM_CFLAGS   = $(WERROR) -Winline -Wall -Wshadow -g -I$(top_srcdir)/include \
                @FLAG_M64@
 AM_CXXFLAGS = $(AM_CFLAGS) @FLAG_M64@
 
-jm_insns_CFLAGS = -Winline -Wall -O -mregnames -DHAS_ALTIVEC -maltivec \
-                       @FLAG_M64@
+jm_insns_CFLAGS = -Winline -Wall -O -mregnames -maltivec @FLAG_M64@