This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Testsuite patch for gcc.dg/pr32370.c on IA64
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Jul 2008 14:50:18 -0700 (PDT)
- Subject: Testsuite patch for gcc.dg/pr32370.c on IA64
- Reply-to: sje at cup dot hp dot com
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" } */