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]

Testsuite patch for gcc.dg/pr32370.c on IA64


Test gcc.dg/pr32370.c fails on IA64 HP-UX in 32 bit mode because 'unsigned
long' is only 32 bits and we get a mismatch of types on the asm
instruction.  This patch changes the test to use 'unsigned long long'
on IA64 which works for 32 or 64 bits and for HP-UX and for Linux.

OK to checkin?  Tested on IA64 Linux and HP-UX.

Steve Ellcey
sje@cup.hp.com


2008-07-29  Steve Ellcey  <sje@cup.hp.com>

	* gcc.dg/pr32370.c: Force 64 bits on IA64.


Index: gcc.dg/pr32370.c
===================================================================
--- gcc.dg/pr32370.c	(revision 138226)
+++ gcc.dg/pr32370.c	(working copy)
@@ -5,12 +5,14 @@
 
 #if defined __i386__ || defined __x86_64__
 # define C "=S"
+# define TYPE unsigned long
 #elif defined __ia64__
 # define C "=a"
+# define TYPE unsigned long long
 #endif
 
 unsigned int
-foo (unsigned long port)
+foo (TYPE port)
 {
   unsigned int v;
   __asm__ __volatile__ ("" : C (v) : "Nd" (port));	/* { dg-error "while reloading\|has impossible" } */


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