This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, ia64, libgcc] Patch to fix libunwind build on IA64


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))))
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]