This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/dataflow] m68k fixes
- From: Kenneth Zadeck <zadeck at naturalbridge dot com>
- To: Roman Zippel <zippel at linux-m68k dot org>
- Cc: gcc-patches at gcc dot gnu dot org, dberlin at dberlin dot org
- Date: Thu, 10 May 2007 17:36:19 -0400
- Subject: Re: [PATCH/dataflow] m68k fixes
- References: <Pine.LNX.4.64.0705101943470.2958@scrub.home>
Roman Zippel wrote:
> Hi,
>
> 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. */
>
this one is obvious and you may check it in. the other one i need to get
some other opinions on.
kenny