aboutsummaryrefslogtreecommitdiff
path: root/gcc/web.c
diff options
context:
space:
mode:
authorJie Zhang <jie@codesourcery.com>2011-02-10 04:22:44 +0000
committerJie Zhang <jiez@gcc.gnu.org>2011-02-10 04:22:44 +0000
commit06c969bd2687012065ba4555e947b6124358f8fe (patch)
tree0058c300af88ff2b0bfc733ccc2176a0b63debe1 /gcc/web.c
parent604e39b1094b333cf303ca71e6a16fb0229195c7 (diff)
downloadgcc-06c969bd2687012065ba4555e947b6124358f8fe.zip
gcc-06c969bd2687012065ba4555e947b6124358f8fe.tar.gz
gcc-06c969bd2687012065ba4555e947b6124358f8fe.tar.bz2
re PR testsuite/47622 (FAIL: gcc.dg/pr42631.c scan-rtl-dump-not web "Web oldreg")
PR testsuite/47622 Revert 2011-02-05 Jie Zhang <jie@codesourcery.com> PR debug/42631 * web.c (entry_register): Don't clobber the number of the first uninitialized reference in used[]. testsuite/ PR testsuite/47622 Revert 2011-02-05 Jie Zhang <jie@codesourcery.com> PR debug/42631 * gcc.dg/pr42631.c: Update test. * gcc.dg/pr42631-2.c: New test. From-SVN: r169997
Diffstat (limited to 'gcc/web.c')
-rw-r--r--gcc/web.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/web.c b/gcc/web.c
index 7014aa5..9b84924 100644
--- a/gcc/web.c
+++ b/gcc/web.c
@@ -260,11 +260,7 @@ entry_register (struct web_entry *entry, df_ref ref, unsigned int *used)
and there won't be any use for the other values when we get to
this point. */
if (used[REGNO (reg)] != 1)
- {
- newreg = reg;
- if (!used[REGNO (reg)])
- used[REGNO (reg)] = 1;
- }
+ newreg = reg, used[REGNO (reg)] = 1;
else
{
newreg = gen_reg_rtx (GET_MODE (reg));