summaryrefslogtreecommitdiff
path: root/gcc/config/pa
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-06 02:54:38 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-06 02:54:38 +0000
commit59ae7b77d679c0ad34fabdfba52ff768b990e472 (patch)
treec85c9b8eb073e69771d0a7c24d180f86812aee64 /gcc/config/pa
parentacdc3fc389635aa1cd0b457ed0e3fefb229dab6a (diff)
downloadgcc-59ae7b77d679c0ad34fabdfba52ff768b990e472.tar.gz
* pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
* pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59879 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa')
-rw-r--r--gcc/config/pa/pa.h4
-rw-r--r--gcc/config/pa/pa32-linux.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index fbbf18dfd25..ebaee36b9f3 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -1960,3 +1960,7 @@ do { \
{"cmpib_comparison_operator", {EQ, NE, LT, LE, LEU, \
GT, GTU, GE}}, \
{"movb_comparison_operator", {EQ, NE, LT, GE}},
+
+/* We need a libcall to canonicalize function pointers on TARGET_ELF32. */
+#define CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL \
+ "__canonicalize_funcptr_for_compare"
diff --git a/gcc/config/pa/pa32-linux.h b/gcc/config/pa/pa32-linux.h
index f685fa8b880..e8bc78322ee 100644
--- a/gcc/config/pa/pa32-linux.h
+++ b/gcc/config/pa/pa32-linux.h
@@ -30,11 +30,6 @@ Boston, MA 02111-1307, USA. */
#undef FUNCTION_OK_FOR_SIBCALL
#define FUNCTION_OK_FOR_SIBCALL(DECL) 1
-/* We need a libcall to canonicalize function pointers because of
- the way function pointers are handled when doing lazy linking. */
-#define CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL \
- "__canonicalize_funcptr_for_compare"
-
/* The libcall __canonicalize_funcptr_for_compare is referenced in
crtend.o and the reference isn't resolved in objects that don't
compare function pointers. Thus, we need to play games to provide