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: m32r bug fix


Hi Steven,

	* config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Extract a const
	char from current_function_decl.
	* config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
	Make prototypes non-K&R.

Applied, with one small change...


Index: gcc/config/m32r/m32r.h
===================================================================
--- gcc/config/m32r/m32r.h	(revision 113950)
+++ gcc/config/m32r/m32r.h	(working copy)
@@ -1372,7 +1372,8 @@ L2:     .word STATIC
 #define DBX_OUTPUT_SOURCE_LINE(file, line, counter)			\
   do									\
     {									\
-      rtx begin_label = XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0);\
+      const char begin_label =						\
+	XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0);		\
       char label[64];							\
       ASM_GENERATE_INTERNAL_LABEL (label, "LM", counter);		\

I believe that you wanted "const char *" as the type for "begin_label", so I made that change.


Cheers
  Nick


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