aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pa/t-pa64
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2006-04-09 18:32:16 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2006-04-09 18:32:16 +0000
commit8b89a26ac1e2b36431d3aed223f831d4ff6766ee (patch)
tree2407b1bf3922783836efd58972156feaeb942c81 /gcc/config/pa/t-pa64
parent16d74a3cc2e10045063e16a0b04cdb5645a744b6 (diff)
downloadgcc-8b89a26ac1e2b36431d3aed223f831d4ff6766ee.zip
gcc-8b89a26ac1e2b36431d3aed223f831d4ff6766ee.tar.gz
gcc-8b89a26ac1e2b36431d3aed223f831d4ff6766ee.tar.bz2
re PR target/27034 (gcc.dg/20021014-1.c (test for excess errors) fails)
PR target/27034 PR target/26508 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts. * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a. (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here. (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines. (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK. (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB stubs. Add ".align 8" directives before all ".dword" directives. (GTHREAD_USE_WEAK): Revise comment. (TARGET_ATTRIBUTE_WEAK): Define. * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o, dfi-stub.o, cxaf-stub.o and jvrc-stub.o. * stublib.c: New file. From-SVN: r112807
Diffstat (limited to 'gcc/config/pa/t-pa64')
-rw-r--r--gcc/config/pa/t-pa6428
1 files changed, 27 insertions, 1 deletions
diff --git a/gcc/config/pa/t-pa64 b/gcc/config/pa/t-pa64
index b302cff..9d4a545 100644
--- a/gcc/config/pa/t-pa64
+++ b/gcc/config/pa/t-pa64
@@ -1,2 +1,28 @@
TARGET_LIBGCC2_CFLAGS = -fPIC -Dpa64=1 -DELF=1 -mlong-calls
-LIB2FUNCS_EXTRA=quadlib.c
+LIB2FUNCS_EXTRA = quadlib.c
+LIBGCCSTUB_OBJS = rfi-stub.o dfi-stub.o jvrc-stub.o cxaf-stub.o
+
+stublib.c: $(srcdir)/config/pa/stublib.c
+ rm -f stublib.c
+ cp $(srcdir)/config/pa/stublib.c .
+
+rfi-stub.o: stublib.c
+ $(GCC_FOR_TARGET) -c -O2 -DL_register_frame_info stublib.c \
+ -o rfi-stub.o
+
+dfi-stub.o: stublib.c
+ $(GCC_FOR_TARGET) -c -O2 -DL_deregister_frame_info stublib.c \
+ -o dfi-stub.o
+
+cxaf-stub.o: stublib.c
+ $(GCC_FOR_TARGET) -c -O2 -DL_cxa_finalize stublib.c \
+ -o cxaf-stub.o
+
+jvrc-stub.o: stublib.c
+ $(GCC_FOR_TARGET) -c -O2 -DL_Jv_RegisterClasses stublib.c \
+ -o jvrc-stub.o
+
+libgcc_stub.a: $(LIBGCCSTUB_OBJS)
+ -rm -rf libgcc_stub.a
+ $(AR) rc libgcc_stub.a $(LIBGCCSTUB_OBJS)
+ $(RANLIB) libgcc_stub.a