gcc.dg/funcorder.c failure on pa64 - need advice
John David Anglin
dave@hiauly1.hia.nrc.ca
Fri Apr 16 21:20:00 GMT 2004
> I think the test should be xfailed on hppa64.
I just happened to have a tested patch ready to xfail this test on hppa64.
Tested on hppa64-hp-hpux11.11. Committed to 3.5.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* gcc.dg/funcorder.c: xfail hppa*64*-*-*.
Index: gcc.dg/funcorder.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/funcorder.c,v
retrieving revision 1.2
diff -u -3 -p -r1.2 funcorder.c
--- gcc.dg/funcorder.c 13 Mar 2003 03:54:27 -0000 1.2
+++ gcc.dg/funcorder.c 16 Apr 2004 20:51:53 -0000
@@ -1,8 +1,10 @@
/* { dg-do compile } */
/* { dg-options "-O2 -funit-at-a-time" } */
-/* { dg-final { if [ istarget hppa*-*-* ] { scan-assembler-not "link_error,%r" } else { scan-assembler-not "link_error" } } } */
+/* { dg-final { if [ istarget hppa*-*-* ] { scan-assembler-not "link_error,%r" { xfail hppa*64*-*-* } } else { scan-assembler-not "link_error" } } } */
/* In unit-at-time the functions should be assembled in order
- e q t main, so we realize that they are pure. */
+ e q t main, so we realize that they are pure. The test is
+ xfailed on hppa64 because variable r in q is sign extended
+ to 64-bits. As a result, "if (t!=mem)" is not simplified. */
static int mem;
static int e(void) __attribute__ ((noinline));
More information about the Gcc
mailing list