From: Claudiu Zissulescu Date: Thu, 17 Nov 2016 13:43:53 +0000 (+0100) Subject: [ARC] Fix compilation issue in pr71872. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c28e6ae6e2e1e249f4ad95b6415da025ab1fc6e;p=gcc.git [ARC] Fix compilation issue in pr71872. gcc/ 2016-11-17 Claudiu Zissulescu * config/arc/arc.c (arc_ccfsm_post_advance): Handle return instruction type. From-SVN: r242548 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d69226644ca..c37fc9cd9a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-17 Claudiu Zissulescu + + * config/arc/arc.c (arc_ccfsm_post_advance): Handle return + instruction type. + 2016-11-17 Claudiu Zissulescu * config/arc/arc-arches.def: Add FPX quarkse instruction as valid diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 92ae42159a6..beac39b9a27 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -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))