pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Fri, 6 Dec 2002 02:54:38 +0000 (02:54 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Fri, 6 Dec 2002 02:54:38 +0000 (02:54 +0000)
* pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
* pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here.

From-SVN: r59879

gcc/ChangeLog
gcc/config/pa/pa.h
gcc/config/pa/pa32-linux.h

index dc7a57d47e3d9105ad3c6048234778c01edf9a96..2ee038202379abe340837a7dbb934b2c7b2ce3e5 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
+       * pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here.
+
 2002-12-05  Dale Johannesen  <dalej@apple.com>
 
        * tree.c (unsafe_for_reeval):  Consider callee child of CALL_EXPR.
index fbbf18dfd25016b2fe976706c35b72bee230c388..ebaee36b9f36a26bbf387c89448c6c5187bf9d47 100644 (file)
@@ -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"
index f685fa8b88067c4b28d645b2dfd690272e46aa28..e8bc78322ee62747808c51302fc9038bd33d75d1 100644 (file)
@@ -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