Patchwork fix rx-elf libgcc build

login
register
mail settings
Submitter Nathan Froyd
Date Oct. 8, 2010, 1:14 p.m.
Message ID <20101008131432.GN17388@nightcrawler>
Download mbox | patch
Permalink /patch/67195/
State New
Headers show

Comments

Nathan Froyd - Oct. 8, 2010, 1:14 p.m.
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.
Nick Clifton - Oct. 8, 2010, 1:40 p.m.
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.
> +#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.
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.
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

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" */