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]

HPPA testsuite fix


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.  */


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