[ARC] Fix compilation issue in pr71872.
authorClaudiu Zissulescu <claziss@synopsys.com>
Thu, 17 Nov 2016 13:43:53 +0000 (14:43 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Thu, 17 Nov 2016 13:43:53 +0000 (14:43 +0100)
gcc/
2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_ccfsm_post_advance): Handle return
instruction type.

From-SVN: r242548

gcc/ChangeLog
gcc/config/arc/arc.c

index d69226644caa6887513793b216df33a514bbc24b..c37fc9cd9a5bb705abbc9662627491c1cde82790 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
+       instruction type.
+
 2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
 
        * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
index 92ae42159a684da112adde661d9dbde5936810f3..beac39b9a274ad80287653c252d11e652af10b9f 100644 (file)
@@ -4120,9 +4120,8 @@ arc_ccfsm_post_advance (rtx_insn *insn, struct arc_ccfsm *state)
           && GET_CODE (PATTERN (insn)) != ADDR_VEC
           && GET_CODE (PATTERN (insn)) != ADDR_DIFF_VEC
           && ((type = get_attr_type (insn)) == TYPE_BRANCH
-              || (type == TYPE_UNCOND_BRANCH
-                  /* ??? Maybe should also handle TYPE_RETURN here,
-                     but we don't have a testcase for that.  */
+              || ((type == TYPE_UNCOND_BRANCH
+                   || type == TYPE_RETURN)
                   && ARC_CCFSM_BRANCH_DELETED_P (state))))
     {
       if (ARC_CCFSM_BRANCH_DELETED_P (state))