This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
HPPA testsuite fix
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 13 Sep 2002 13:27:57 -0700 (PDT)
- Subject: HPPA testsuite fix
- Reply-to: sje at cup dot hp dot com
This is a testsuite change to make gcc.dg/20020312-2.c pass on HP-UX
hppa. The pa-osf.h version of CPP_PREDEFINES defines __parisc__ but no
one else does (Linux, HP-UX). All the CPP_PREDEFINES seem to define
__hppa__ so I think we should use that macro in this test instead of
__parisc__.
Tested on HP-UX 32 and 64 bits.
Steve Ellcey
sje@cup.hp.com
2002-09-13 Steve Ellcey <sje@cup.hp.com>
* gcc.dg/20020312-2.c: Change __parisc__ to __hppa__.
*** gcc.orig/gcc/testsuite/gcc.dg/20020312-2.c Fri Sep 13 13:20:39 2002
--- gcc/gcc/testsuite/gcc.dg/20020312-2.c Fri Sep 13 13:20:54 2002
***************
*** 66,72 ****
/* No pic register. */
#elif #cpu(ns32k)
/* No pic register. */
! #elif defined(__parisc__)
/* PIC register is %r27 or %r19, but is used even without -fpic. */
#elif defined(__pdp11__)
/* No pic register. */
--- 66,72 ----
/* No pic register. */
#elif #cpu(ns32k)
/* No pic register. */
! #elif defined(__hppa__)
/* PIC register is %r27 or %r19, but is used even without -fpic. */
#elif defined(__pdp11__)
/* No pic register. */