This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, ia64, libgcc] Patch to fix libunwind build on IA64
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: matz at suse dot de
- Date: Fri, 18 Nov 2011 09:24:22 -0800 (PST)
- Subject: [patch, ia64, libgcc] Patch to fix libunwind build on IA64
- Reply-to: sje at cup dot hp dot com
This patch fixes the IA64 bootstrap when building libunwind. When using
-fexceptions libunwind will have a reference to __gcc_personality_v0 and
the bootstrap fails, using -fno-exceptions fixes this. This problem
started with r181172, Michael Matz's fix to mark objects death at end of
scope.
Tested on IA64 HP-UX and Linux.
While this change isn't in an ia64 specific file, ia64 is the only
platform affected because no other platform defines LIBUNWIND in order
to build a separate unwind library. So I will go ahead and check it in
if there are no objections.
Steve Ellcey
sje@cup.hp.com
2011-11-18 Steve Ellcey <sje@cup.hp.com>
* Makefile.in (c_flags): Set to -fno-exceptions to build libunwind.
Index: Makefile.in
===================================================================
--- Makefile.in (revision 181466)
+++ Makefile.in (working copy)
@@ -829,7 +829,7 @@ endif
# Build LIBUNWIND.
-c_flags := -fexceptions
+c_flags := -fno-exceptions
libunwind-objects += $(addsuffix $(objext),$(basename $(notdir $(LIBUNWIND))))