summaryrefslogtreecommitdiff
path: root/gcc/ginclude
diff options
context:
space:
mode:
authorsirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-01 08:34:13 +0000
committersirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-01 08:34:13 +0000
commit74b8f08f054d5031d656e21abc4f453269656671 (patch)
tree94c60525536b0f12eecc98a454e53ba97376db99 /gcc/ginclude
parent68ac3ca4eb77c5dbcb12e1f5649488a61e0094d9 (diff)
downloadgcc-74b8f08f054d5031d656e21abc4f453269656671.tar.gz
2001-12-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* ginclude/ppc-asm.h (JUMP_TARGET): New macro. * config/rs6000/tramp.asm: Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47509 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude')
-rw-r--r--gcc/ginclude/ppc-asm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ginclude/ppc-asm.h b/gcc/ginclude/ppc-asm.h
index 678743245f3..3a6fb2a8bcd 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); \