From: Bob Wilson Date: Tue, 11 Feb 2003 22:18:53 +0000 (+0000) Subject: xtensa.md (set_frame_ptr): Change rtl to set reg a7. X-Git-Tag: releases/gcc-3.2.3~211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c26f81ee7518def2a05fa186eefa3ad818ab9c7;p=thirdparty%2Fgcc.git xtensa.md (set_frame_ptr): Change rtl to set reg a7. * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7. * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP as a SET pattern. From-SVN: r62737 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ece8df5528e5..0bb53a754ec0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2003-02-11 Bob Wilson + + Backport following patch: + + 2003-02-11 Bob Wilson + + * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7. + * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP + as a SET pattern. + 2003-02-10 Eric Botcazou Christian Ehrhardt diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 6beb6745626e..40d914f45c9a 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -2245,8 +2245,9 @@ xtensa_reorg (first) continue; pat = PATTERN (insn); - if (GET_CODE (pat) == UNSPEC_VOLATILE - && (XINT (pat, 1) == UNSPECV_SET_FP)) + if (GET_CODE (pat) == SET + && GET_CODE (SET_SRC (pat)) == UNSPEC_VOLATILE + && (XINT (SET_SRC (pat), 1) == UNSPECV_SET_FP)) { set_frame_ptr_insn = insn; break; diff --git a/gcc/config/xtensa/xtensa.md b/gcc/config/xtensa/xtensa.md index b0cf9a1724ff..55bfd0b8377f 100644 --- a/gcc/config/xtensa/xtensa.md +++ b/gcc/config/xtensa/xtensa.md @@ -2392,7 +2392,7 @@ ;; to set up the frame pointer. (define_insn "set_frame_ptr" - [(unspec_volatile [(const_int 0)] UNSPECV_SET_FP)] + [(set (reg:SI A7_REG) (unspec_volatile [(const_int 0)] UNSPECV_SET_FP))] "" "* { @@ -2406,7 +2406,7 @@ ;; Post-reload splitter to remove fp assignment when it's not needed. (define_split - [(unspec_volatile [(const_int 0)] UNSPECV_SET_FP)] + [(set (reg:SI A7_REG) (unspec_volatile [(const_int 0)] UNSPECV_SET_FP))] "reload_completed && !frame_pointer_needed" [(unspec [(const_int 0)] UNSPEC_NOP)] "")