[NDS32] Add missing RTX_FRAME_RELATED_P to set fp_adjust_insn rtx.
authorjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Nov 2014 05:19:00 +0000 (05:19 +0000)
committerjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Nov 2014 05:19:00 +0000 (05:19 +0000)
gcc/
* config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
as RTX_FRAME_RELATED_P rtx.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217902 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/nds32/nds32.c

index 3c1efa7..a66af1e 100644 (file)
@@ -1,5 +1,10 @@
 2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
 
+       * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
+       as RTX_FRAME_RELATED_P rtx.
+
+2014-11-21  Chung-Ju Wu  <jasonwucj@gmail.com>
+
        * config/nds32/nds32.opt (march): Add help message.
 
 2014-11-20  Patrick Palka  <ppalka@gcc.gnu.org>
index 6fb2069..156baf2 100644 (file)
@@ -2937,6 +2937,9 @@ nds32_expand_prologue (void)
                                   GEN_INT (fp_adjust));
       /* Emit rtx into instructions list and receive INSN rtx form.  */
       fp_adjust_insn = emit_insn (fp_adjust_insn);
+
+      /* The insn rtx 'fp_adjust_insn' will change frame layout.  */
+      RTX_FRAME_RELATED_P (fp_adjust_insn) = 1;
     }
 
   /* Adjust $sp = $sp - local_size - out_args_size