aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog15
-rw-r--r--gcc/config/ia64/t-hpux4
-rw-r--r--gcc/gcc.c6
3 files changed, 13 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 098b67e..06768ae 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-09 James E Wilson <wilson@specifixinc.com>
+
+ * gcc.c (init_spec): Remove -lunwind from shared case.
+ * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
+
2004-01-09 Steve Ellcey <sje@cup.hp.com>
* configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
@@ -40,7 +45,7 @@
(expand_end_bindings): Save and restor last_expr_alt_rtl.
* tree.def (RTL_EXPR): Give it an additional operand.
* tree.h (RTL_EXPR_ALT_RTL): New macro.
-
+
2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
@@ -86,10 +91,10 @@
PR opt/12441
Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
- * i386.c (aligned_operand): Be prepared for SUBREGed registers.
- (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
- (ix86_address_cost): Be prepared for SUBREGed registers.
- (legitimate_address_p): Accept SUBREGed registers.
+ * i386.c (aligned_operand): Be prepared for SUBREGed registers.
+ (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
+ (ix86_address_cost): Be prepared for SUBREGed registers.
+ (legitimate_address_p): Accept SUBREGed registers.
2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
diff --git a/gcc/config/ia64/t-hpux b/gcc/config/ia64/t-hpux
index 48baadd..597c2ac 100644
--- a/gcc/config/ia64/t-hpux
+++ b/gcc/config/ia64/t-hpux
@@ -26,9 +26,11 @@ LIBGCC1_TEST =
LIB2ADDEH =
SHLIB_EXT = .so
+# Must include -lunwind in the link, so that libgcc_s.so has the necessary
+# DT_NEEDED entry for libunwind.
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
-Wl,+h,@shlib_base_name@.so.0 \
- -o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lc && \
+ -o @shlib_base_name@.so @multilib_flags@ @shlib_objs@ -lunwind -lc && \
rm -f @shlib_base_name@.so.0 && \
$(LN_S) @shlib_base_name@.so @shlib_base_name@.so.0
# $(slibdir) double quoted to protect it from expansion while building
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 27024fa..bc6d4c4 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1633,9 +1633,6 @@ init_spec (void)
#else
"-lgcc_s%M"
#endif
-#ifdef USE_LIBUNWIND_EXCEPTIONS
- " -lunwind"
-#endif
,
"-lgcc",
"-lgcc_eh"
@@ -1657,9 +1654,6 @@ init_spec (void)
#else
"-lgcc_s%M"
#endif
-#ifdef USE_LIBUNWIND_EXCEPTIONS
- " -lunwind"
-#endif
,
"libgcc.a%s",
"libgcc_eh.a%s"