Patchwork [rl78] define TARGET_UNWIND_WORD_MODE

login
register
mail settings
Submitter DJ Delorie
Date June 11, 2013, 6:45 p.m.
Message ID <201306111845.r5BIj7oc019292@greed.delorie.com>
Download mbox | patch
Permalink /patch/250607/
State New
Headers show

Comments

DJ Delorie - June 11, 2013, 6:45 p.m.
Fixes a libstdc++v3 build failure.  Committed.

	* config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
	(rl78_unwind_word_mode): New.

Patch

Index: config/rl78/rl78.c
===================================================================
--- config/rl78/rl78.c	(revision 199963)
+++ config/rl78/rl78.c	(working copy)
@@ -2736,9 +2736,19 @@  rl78_return_in_memory (const_tree type, 
 {
   const HOST_WIDE_INT size = int_size_in_bytes (type);
   return (size == -1 || size > 8);
 }
 
 
+
+#undef  TARGET_UNWIND_WORD_MODE
+#define TARGET_UNWIND_WORD_MODE rl78_unwind_word_mode
+
+static enum machine_mode
+rl78_unwind_word_mode (void)
+{
+  return HImode;
+}
+
 struct gcc_target targetm = TARGET_INITIALIZER;
 
 #include "gt-rl78.h"