From: John David Anglin Date: Wed, 18 Feb 2004 22:18:54 +0000 (+0000) Subject: pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not generating PIC... X-Git-Tag: releases/gcc-4.0.0~10022 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cf7104e3e722f1170660e8348374621a8a491d0;p=thirdparty%2Fgcc.git pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not generating PIC code. * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not generating PIC code. From-SVN: r78053 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8face630335f..12345f58fa11 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-02-18 John David Anglin + + * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not + generating PIC code. + 2004-02-18 Kazu Hirata * config/h8300/h8300-protos.h: Add a prototype for diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 62b670c83e29..308842511d58 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -541,10 +541,11 @@ do { \ /* Register in which static-chain is passed to a function. */ #define STATIC_CHAIN_REGNUM 29 -/* Register which holds offset table for position-independent +/* Register used to address the offset table for position-independent data references. */ +#define PIC_OFFSET_TABLE_REGNUM \ + (flag_pic ? (TARGET_64BIT ? 27 : 19) : INVALID_REGNUM) -#define PIC_OFFSET_TABLE_REGNUM (TARGET_64BIT ? 27 : 19) #define PIC_OFFSET_TABLE_REG_CALL_CLOBBERED 1 /* Function to return the rtx used to save the pic offset table register