aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Bruel <christian.bruel@st.com>2013-04-10 09:52:00 +0200
committerChristian Bruel <chrbr@gcc.gnu.org>2013-04-10 09:52:00 +0200
commitf408477e6d42fa6459e4372dff14da5aa9294a5d (patch)
tree0e3e2ca9b98aa1a59449a981d56f026f78653f15
parent4b1d41982749611884c024dcc6582e18ad7301d5 (diff)
downloadgcc-f408477e6d42fa6459e4372dff14da5aa9294a5d.zip
gcc-f408477e6d42fa6459e4372dff14da5aa9294a5d.tar.gz
gcc-f408477e6d42fa6459e4372dff14da5aa9294a5d.tar.bz2
sh.md (barrier_align): Use next/prev_active_insn instead of next/prev_real_insn.
* config/sh/sh.md (barrier_align): Use next/prev_active_insn instead of next/prev_real_insn. From-SVN: r197664
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sh/sh.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a623e88..a744327 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-09 Christian Bruel <christian.bruel@st.com>
+
+ * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
+ of next/prev_real_insn.
+
2013-04-09 Jan Hubicka <jh@suse.cz>
* ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p): Drop
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index ccf0ffe..a4bb62a 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -5842,7 +5842,7 @@ fixup_addr_diff_vecs (rtx first)
int
barrier_align (rtx barrier_or_label)
{
- rtx next = next_real_insn (barrier_or_label), pat, prev;
+ rtx next = next_active_insn (barrier_or_label), pat, prev;
if (! next)
return 0;
@@ -5856,7 +5856,7 @@ barrier_align (rtx barrier_or_label)
/* This is a barrier in front of a constant table. */
return 0;
- prev = prev_real_insn (barrier_or_label);
+ prev = prev_active_insn (barrier_or_label);
if (GET_CODE (PATTERN (prev)) == ADDR_DIFF_VEC)
{
pat = PATTERN (prev);