diff options
author | Bob Wilson <bob.wilson@acm.org> | 2007-11-08 22:08:02 +0000 |
---|---|---|
committer | Bob Wilson <bwilson@gcc.gnu.org> | 2007-11-08 22:08:02 +0000 |
commit | 35a3be486acc186f21b4f9155b98e1267f921c15 (patch) | |
tree | 286b754b66a2efde9887a48240d0a14a42d74a53 | |
parent | d84767fb0119f515d07d16830124e8b16a76443f (diff) | |
download | gcc-35a3be486acc186f21b4f9155b98e1267f921c15.zip gcc-35a3be486acc186f21b4f9155b98e1267f921c15.tar.gz gcc-35a3be486acc186f21b4f9155b98e1267f921c15.tar.bz2 |
xtensa.c (xtensa_expand_prologue): Remove first argument for gen_entry calls.
* 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.
From-SVN: r130029
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/xtensa/xtensa.c | 4 | ||||
-rw-r--r-- | gcc/config/xtensa/xtensa.md | 9 |
3 files changed, 13 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2ccc8a..f28f013 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2007-11-08 Bob Wilson <bob.wilson@acm.org> + + * 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 <tromey@redhat.com> * 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 4fea001..76df1d2 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 2f47540..98ebb09 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")]) |