diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2006-11-30 03:13:29 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@gcc.gnu.org> | 2006-11-30 03:13:29 +0000 |
commit | 2954a81343333d5e6e3b78616f2b5b10cf2d1251 (patch) | |
tree | 1579d52216771432efb33842afdd8df1f32fbe89 /gcc/emit-rtl.c | |
parent | f21840c3c72f9d7827ac82ce1643b4fe04083343 (diff) | |
download | gcc-2954a81343333d5e6e3b78616f2b5b10cf2d1251.zip gcc-2954a81343333d5e6e3b78616f2b5b10cf2d1251.tar.gz gcc-2954a81343333d5e6e3b78616f2b5b10cf2d1251.tar.bz2 |
emit-rtl.c (verify_rtl_sharing): Handle SEQUENCE specially when clearing the used flags.
* emit-rtl.c (verify_rtl_sharing): Handle SEQUENCE specially
when clearing the used flags.
From-SVN: r119353
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 114015c..e63e138 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2292,6 +2292,20 @@ verify_rtl_sharing (void) reset_used_flags (PATTERN (p)); reset_used_flags (REG_NOTES (p)); reset_used_flags (LOG_LINKS (p)); + if (GET_CODE (PATTERN (p)) == SEQUENCE) + { + int i; + rtx q, sequence = PATTERN (p); + + for (i = 0; i < XVECLEN (sequence, 0); i++) + { + q = XVECEXP (sequence, 0, i); + gcc_assert (INSN_P (q)); + reset_used_flags (PATTERN (q)); + reset_used_flags (REG_NOTES (q)); + reset_used_flags (LOG_LINKS (q)); + } + } } for (p = get_insns (); p; p = NEXT_INSN (p)) |