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]

[rl78] define TARGET_UNWIND_WORD_MODE


Fixes a libstdc++v3 build failure.  Committed.

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


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"


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