This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 5/6] rs6000: Fix gcc.dg/20020919-1.c for -m32 -mpowerpc64


"long long" takes one register exactly when TARGET_POWERPC64, which
is _ARCH_PPC64 in preprocessor macros; not just for 64-bit ABIs.


2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/testsuite/
	* gcc.dg/20020919-1.c: Use _ARCH_PPC64 to test for -mpowerpc64.

---
 gcc/testsuite/gcc.dg/20020919-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/20020919-1.c b/gcc/testsuite/gcc.dg/20020919-1.c
index dfb0721..40f2e6c 100644
--- a/gcc/testsuite/gcc.dg/20020919-1.c
+++ b/gcc/testsuite/gcc.dg/20020919-1.c
@@ -42,7 +42,7 @@
 	|| defined (__ppc)
 # define REG1 "6"
 # define REG2 "7"
-# if !defined(__powerpc64__) && !defined(__LP64__)
+# if !defined(_ARCH_PPC64)
 #  define REG3 "8"
 #  define REG4 "9"
 # endif
-- 
1.8.1.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]