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]

RFA: Fix INITIALIZE_TRAMPOLINE macro


Hi Micheal,

  Please may I apply this patch to the c4x gcc sources ?  It fixes
  what I believe to be a typo in the INITIALIZE_TRAMPOLINE macro where
  a lower case version of the macro argument TRAMP is used in a few
  places.

Cheers
  Nick

2004-05-19  Nick Clifton  <nickc@redhat.com>

	* config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
	with 'TRAMP' in the body of the macro definition.

Index: gcc/config/c4x/c4x.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/c4x/c4x.h,v
retrieving revision 1.143
diff -c -3 -p -r1.143 c4x.h
*** gcc/config/c4x/c4x.h	6 Feb 2004 06:18:26 -0000	1.143
--- gcc/config/c4x/c4x.h	19 May 2004 09:58:20 -0000
*************** do { fprintf (asm_out_file, "\t.sdef\t")
*** 1778,1803 ****
  			   GEN_INT (0x5069), size_int (16), 0, 1);	\
        emit_insn (gen_iorqi3 (tmp1, tmp1, tmp2));			\
        emit_move_insn (gen_rtx_MEM (QImode,				\
! 			       plus_constant (tramp, 0)), tmp1);	\
        tmp1 = expand_and (QImode, FNADDR, GEN_INT (0xffff), 0);		\
        tmp2 = expand_shift (LSHIFT_EXPR, QImode,				\
  			   GEN_INT (0x1069), size_int (16), 0, 1);	\
        emit_insn (gen_iorqi3 (tmp1, tmp1, tmp2));			\
        emit_move_insn (gen_rtx_MEM (QImode,				\
! 			       plus_constant (tramp, 2)), tmp1);	\
        tmp1 = expand_shift (RSHIFT_EXPR, QImode, CXT,			\
  			   size_int (16), 0, 1);			\
        tmp2 = expand_shift (LSHIFT_EXPR, QImode,				\
  			   GEN_INT (0x5068), size_int (16), 0, 1);	\
        emit_insn (gen_iorqi3 (tmp1, tmp1, tmp2));			\
        emit_move_insn (gen_rtx_MEM (QImode,				\
! 			       plus_constant (tramp, 3)), tmp1);	\
        tmp1 = expand_and (QImode, CXT, GEN_INT (0xffff), 0);		\
        tmp2 = expand_shift (LSHIFT_EXPR, QImode,				\
  			   GEN_INT (0x1068), size_int (16), 0, 1);	\
        emit_insn (gen_iorqi3 (tmp1, tmp1, tmp2));			\
        emit_move_insn (gen_rtx_MEM (QImode,				\
! 			       plus_constant (tramp, 6)), tmp1);	\
      }									\
    else									\
      {									\
--- 1778,1803 ----
  			   GEN_INT (0x5069), size_int (16), 0, 1);	\
        emit_insn (gen_iorqi3 (tmp1, tmp1, tmp2));			\
        emit_move_insn (gen_rtx_MEM (QImode,				\
! 			       plus_constant (TRAMP, 0)), tmp1);	\
        tmp1 = expand_and (QImode, FNADDR, GEN_INT (0xffff), 0);		\
        tmp2 = expand_shift (LSHIFT_EXPR, QImode,				\
  			   GEN_INT (0x1069), size_int (16), 0, 1);	\
        emit_insn (gen_iorqi3 (tmp1, tmp1, tmp2));			\
        emit_move_insn (gen_rtx_MEM (QImode,				\
! 			       plus_constant (TRAMP, 2)), tmp1);	\
        tmp1 = expand_shift (RSHIFT_EXPR, QImode, CXT,			\
  			   size_int (16), 0, 1);			\
        tmp2 = expand_shift (LSHIFT_EXPR, QImode,				\
  			   GEN_INT (0x5068), size_int (16), 0, 1);	\
        emit_insn (gen_iorqi3 (tmp1, tmp1, tmp2));			\
        emit_move_insn (gen_rtx_MEM (QImode,				\
! 			       plus_constant (TRAMP, 3)), tmp1);	\
        tmp1 = expand_and (QImode, CXT, GEN_INT (0xffff), 0);		\
        tmp2 = expand_shift (LSHIFT_EXPR, QImode,				\
  			   GEN_INT (0x1068), size_int (16), 0, 1);	\
        emit_insn (gen_iorqi3 (tmp1, tmp1, tmp2));			\
        emit_move_insn (gen_rtx_MEM (QImode,				\
! 			       plus_constant (TRAMP, 6)), tmp1);	\
      }									\
    else									\
      {									\
  


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