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]

Re: [PATCH]: One declaration of abort


kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:

>     2004-08-27  Andreas Schwab  <schwab@suse.de>
>
> 	* Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
>
> If this is due to the call to abort in raise.c, I think it's simpler to
> #undef abort there. 

Like this?

Andreas.

2004-08-27  Andreas Schwab  <schwab@suse.de>

	* Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
	* raise.c [!IN_RTS]: Undef abort.

--- gcc/ada/Make-lang.in	27 Aug 2004 11:25:00 +0200	1.94
+++ gcc/ada/Make-lang.in	27 Aug 2004 12:22:08 +0200	
@@ -259,7 +259,7 @@ GNATBIND_OBJS = \
 
 # List of extra object files linked in with various programs.
 EXTRA_GNAT1_OBJS = prefix.o
-EXTRA_GNATBIND_OBJS = prefix.o version.o errors.o
+EXTRA_GNATBIND_OBJS = prefix.o version.o
 
 # Language-independent object files.
 ADA_BACKEND = $(BACKEND) attribs.o
--- gcc/ada/raise.c	26 Jun 2004 13:50:43 +0200	1.15
+++ gcc/ada/raise.c	27 Aug 2004 12:08:49 +0200	
@@ -1140,6 +1140,9 @@ __gnat_Unwind_ForcedUnwind (_Unwind_Exce
    be using the GCC eh mechanism for the compiler, however, so expect these
    functions never to be called.  */
 
+/* We don't want fancy_abort here.  */
+#undef abort
+
 _Unwind_Reason_Code
 __gnat_Unwind_RaiseException (_Unwind_Exception *e ATTRIBUTE_UNUSED)
 {

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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