diff options
author | Franz Sirl <Franz.Sirl-kernel@lauterbach.com> | 2001-12-01 08:34:13 +0000 |
---|---|---|
committer | Franz Sirl <sirl@gcc.gnu.org> | 2001-12-01 08:34:13 +0000 |
commit | 8a155ecc2aff1c9ae5ebccaf6dd116e064442fb2 (patch) | |
tree | 94c60525536b0f12eecc98a454e53ba97376db99 /gcc/ginclude | |
parent | 837ce4797c0897100aeab27b470911270eb90f51 (diff) | |
download | gcc-8a155ecc2aff1c9ae5ebccaf6dd116e064442fb2.zip gcc-8a155ecc2aff1c9ae5ebccaf6dd116e064442fb2.tar.gz gcc-8a155ecc2aff1c9ae5ebccaf6dd116e064442fb2.tar.bz2 |
ppc-asm.h (JUMP_TARGET): New macro.
2001-12-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* ginclude/ppc-asm.h (JUMP_TARGET): New macro.
* config/rs6000/tramp.asm: Use it.
From-SVN: r47509
Diffstat (limited to 'gcc/ginclude')
-rw-r--r-- | gcc/ginclude/ppc-asm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ginclude/ppc-asm.h b/gcc/ginclude/ppc-asm.h index 6787432..3a6fb2a 100644 --- a/gcc/ginclude/ppc-asm.h +++ b/gcc/ginclude/ppc-asm.h @@ -105,6 +105,7 @@ #if defined(_CALL_AIXDESC) #define FUNC_NAME(name) GLUE(.,name) +#define JUMP_TARGET(name) FUNC_NAME(name) #define FUNC_START(name) \ .section DESC_SECTION,"aw"; \ name: \ @@ -123,6 +124,7 @@ GLUE(.L,name): \ #elif defined(__WINNT__) #define FUNC_NAME(name) GLUE(..,name) +#define JUMP_TARGET(name) FUNC_NAME(name) #define FUNC_START(name) \ .pdata; \ .align 2; \ @@ -141,6 +143,7 @@ GLUE(FE_MOT_RESVD..,name): #elif defined(_CALL_NT) #define FUNC_NAME(name) GLUE(..,name) +#define JUMP_TARGET(name) FUNC_NAME(name) #define FUNC_START(name) \ .section DESC_SECTION,"aw"; \ name: \ @@ -176,6 +179,11 @@ GLUE(.L,name): \ #else #define FUNC_NAME(name) GLUE(__USER_LABEL_PREFIX__,name) +#if defined __PIC__ || defined __pic__ +#define JUMP_TARGET(name) FUNC_NAME(name@plt) +#else +#define JUMP_TARGET(name) FUNC_NAME(name) +#endif #define FUNC_START(name) \ .type FUNC_NAME(name),@function; \ .globl FUNC_NAME(name); \ |