This is the mail archive of the 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]

[PATCH/dataflow] m68k fixes


I needed the changes below to get m68k on the dataflow branch to compile, 
ok to commit?

bye, Roman

	* config/m68k/m68k.c: include df.h.
	(m68k_output_mi_thunk): use SET_REGNO.

Index: gcc-dataflow/gcc/config/m68k/m68k.c
--- gcc-dataflow.orig/gcc/config/m68k/m68k.c
+++ gcc-dataflow/gcc/config/m68k/m68k.c
@@ -43,6 +43,7 @@ Boston, MA 02110-1301, USA.  */
 #include "target-def.h"
 #include "debug.h"
 #include "flags.h"
+#include "df.h"
 enum reg_class regno_reg_class[] =
@@ -4147,7 +4148,7 @@ m68k_output_mi_thunk (FILE *file, tree t
 	  /* Use the static chain register as a temporary (call-clobbered)
 	     GOT pointer for this function.  We can use the static chain
 	     register because it isn't live on entry to the thunk.  */
-	  REGNO (pic_offset_table_rtx) = STATIC_CHAIN_REGNUM;
+	  SET_REGNO (pic_offset_table_rtx, STATIC_CHAIN_REGNUM);
 	  emit_insn (gen_load_got (pic_offset_table_rtx));
       legitimize_pic_address (XEXP (mem, 0), Pmode, static_chain_rtx);
@@ -4169,7 +4170,7 @@ m68k_output_mi_thunk (FILE *file, tree t
   /* Restore the original PIC register.  */
   if (flag_pic)
-    REGNO (pic_offset_table_rtx) = PIC_REG;
+    SET_REGNO (pic_offset_table_rtx, PIC_REG);
 /* Worker function for TARGET_STRUCT_VALUE_RTX.  */

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