diff mbox

fix rx-elf libgcc build

Message ID 20101008131432.GN17388@nightcrawler
State New
Headers show

Commit Message

Nathan Froyd Oct. 8, 2010, 1:14 p.m. UTC
This patch adds a definition of TARGET_EXCEPT_UNWIND_INFO so that libgcc
will build again.

Tested with cross to rx-elf.  OK to commit?

-Nathan

	* config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.

Comments

Nick Clifton Oct. 8, 2010, 1:40 p.m. UTC | #1
Hi Nathan,

> +#undef	TARGET_EXCEPT_UNWIND_INFO
> +#define TARGET_EXCEPT_UNWIND_INFO		sjlj_except_unwind_info

Approved - please apply.

Cheers
   Nick
DJ Delorie Oct. 8, 2010, 6:13 p.m. UTC | #2
> +#define TARGET_EXCEPT_UNWIND_INFO		sjlj_except_unwind_info

sjlj?  I thought RX used dwarf2 unwinding...
Nathan Froyd Oct. 8, 2010, 6:19 p.m. UTC | #3
On Fri, Oct 08, 2010 at 02:13:25PM -0400, DJ Delorie wrote:
> 
> > +#define TARGET_EXCEPT_UNWIND_INFO		sjlj_except_unwind_info
> 
> sjlj?  I thought RX used dwarf2 unwinding...

Not so far as I can see.  __builtin_eh_return isn't supported, among
other things...

-Nathan
Nick Clifton Oct. 11, 2010, 11:57 a.m. UTC | #4
Hi Nathan,

   [Not sure if I have already replied to this one...]

> 	* config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.

Approved - please apply.

Cheers
   Nick
diff mbox

Patch

Index: config/rx/rx.c
===================================================================
--- config/rx/rx.c	(revision 165177)
+++ config/rx/rx.c	(working copy)
@@ -2837,6 +2837,9 @@  rx_memory_move_cost (enum machine_mode m
 #undef  TARGET_OPTION_OPTIMIZATION
 #define TARGET_OPTION_OPTIMIZATION		rx_option_optimization
 
+#undef	TARGET_EXCEPT_UNWIND_INFO
+#define TARGET_EXCEPT_UNWIND_INFO		sjlj_except_unwind_info
+
 struct gcc_target targetm = TARGET_INITIALIZER;
 
 /* #include "gt-rx.h" */