From: bwilson Date: Thu, 8 Nov 2007 22:08:02 +0000 (+0000) Subject: * config/xtensa/xtensa.c (xtensa_expand_prologue): Remove first X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a35ed56c546db56254d089d76e106e7c68604f91;p=thirdparty%2Fgcc.git * config/xtensa/xtensa.c (xtensa_expand_prologue): Remove first argument for gen_entry calls. * config/xtensa/xtensa.md: Add new "entry" value to "type" attribute. (entry): Use the new attribute value. Remove unused first operand. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130029 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2ccc8a8a5b7..f28f01311691 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2007-11-08 Bob Wilson + + * config/xtensa/xtensa.c (xtensa_expand_prologue): Remove first + argument for gen_entry calls. + * config/xtensa/xtensa.md: Add new "entry" value to "type" attribute. + (entry): Use the new attribute value. Remove unused first operand. + 2007-11-08 Tom Tromey * c-parser.c (c_parser_translation_unit): Use location in error. diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 4fea00196efa..76df1d271cb7 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -2308,12 +2308,12 @@ xtensa_expand_prologue (void) size_rtx = GEN_INT (total_size); if (total_size < (1 << (12+3))) - insn = emit_insn (gen_entry (size_rtx, size_rtx)); + insn = emit_insn (gen_entry (size_rtx)); else { /* Use a8 as a temporary since a0-a7 may be live. */ rtx tmp_reg = gen_rtx_REG (Pmode, A8_REG); - emit_insn (gen_entry (size_rtx, GEN_INT (MIN_FRAME_SIZE))); + emit_insn (gen_entry (GEN_INT (MIN_FRAME_SIZE))); emit_move_insn (tmp_reg, GEN_INT (total_size - MIN_FRAME_SIZE)); emit_insn (gen_subsi3 (tmp_reg, stack_pointer_rtx, tmp_reg)); insn = emit_insn (gen_movsi (stack_pointer_rtx, tmp_reg)); diff --git a/gcc/config/xtensa/xtensa.md b/gcc/config/xtensa/xtensa.md index 2f47540a7661..98ebb09d46e3 100644 --- a/gcc/config/xtensa/xtensa.md +++ b/gcc/config/xtensa/xtensa.md @@ -79,7 +79,7 @@ ;; Attributes. (define_attr "type" - "unknown,jump,call,load,store,move,arith,multi,nop,farith,fmadd,fdiv,fsqrt,fconv,fload,fstore,mul16,mul32,div32,mac16,rsr,wsr" + "unknown,jump,call,load,store,move,arith,multi,nop,farith,fmadd,fdiv,fsqrt,fconv,fload,fstore,mul16,mul32,div32,mac16,rsr,wsr,entry" (const_string "unknown")) (define_attr "mode" @@ -1541,12 +1541,11 @@ (define_insn "entry" [(set (reg:SI A1_REG) - (unspec_volatile:SI [(match_operand:SI 0 "const_int_operand" "i") - (match_operand:SI 1 "const_int_operand" "i")] + (unspec_volatile:SI [(match_operand:SI 0 "const_int_operand" "i")] UNSPECV_ENTRY))] "" - "entry\tsp, %1" - [(set_attr "type" "move") + "entry\tsp, %0" + [(set_attr "type" "entry") (set_attr "mode" "SI") (set_attr "length" "3")])