From 951930309fde16c4f1302cad213faafcbf5c1a58 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Wed, 10 Jun 1998 09:49:30 +0000 Subject: unroll.c (verify_addresses): Use validate_replace_rtx to undo the changes. * unroll.c (verify_addresses): Use validate_replace_rtx to undo the changes. Abort if the undo fails. From-SVN: r20404 --- gcc/unroll.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/unroll.c') diff --git a/gcc/unroll.c b/gcc/unroll.c index 2f6a2e8..46dc7ac 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -2664,9 +2664,10 @@ verify_addresses (v, giv_inc, unroll_number) || ! validate_replace_rtx (*v->location, last_addr, v->insn)) ret = 0; - /* Now put things back the way they were before. This will always + /* Now put things back the way they were before. This should always succeed. */ - validate_change (v->insn, v->location, orig_addr, 0); + if (! validate_replace_rtx (*v->location, orig_addr, v->insn)) + abort (); return ret; } -- cgit v1.1