Commit f5393ab9 by Richard Stallman

(struct undo): Rename `rtx' fields to `r'.

(undo_all, SUBST, gen_rtx_combine): Corresponding changes.

From-SVN: r5059
parent 2a81034f
...@@ -303,8 +303,8 @@ static char *reg_last_set_sign_bit_copies; ...@@ -303,8 +303,8 @@ static char *reg_last_set_sign_bit_copies;
struct undo struct undo
{ {
int is_int; int is_int;
union {rtx rtx; int i;} old_contents; union {rtx r; int i;} old_contents;
union {rtx *rtx; int *i;} where; union {rtx *r; int *i;} where;
}; };
/* Record a bunch of changes to be undone, up to MAX_UNDO of them. /* Record a bunch of changes to be undone, up to MAX_UNDO of them.
...@@ -339,10 +339,10 @@ static struct undobuf undobuf; ...@@ -339,10 +339,10 @@ static struct undobuf undobuf;
if (undobuf.num_undo < MAX_UNDO) \ if (undobuf.num_undo < MAX_UNDO) \
{ \ { \
undobuf.undo[undobuf.num_undo].is_int = 0; \ undobuf.undo[undobuf.num_undo].is_int = 0; \
undobuf.undo[undobuf.num_undo].where.rtx = &INTO; \ undobuf.undo[undobuf.num_undo].where.r = &INTO; \
undobuf.undo[undobuf.num_undo].old_contents.rtx = INTO; \ undobuf.undo[undobuf.num_undo].old_contents.r = INTO; \
INTO = _new; \ INTO = _new; \
if (undobuf.undo[undobuf.num_undo].old_contents.rtx != INTO) \ if (undobuf.undo[undobuf.num_undo].old_contents.r != INTO) \
undobuf.num_undo++; \ undobuf.num_undo++; \
} \ } \
} while (0) } while (0)
...@@ -2265,7 +2265,7 @@ undo_all () ...@@ -2265,7 +2265,7 @@ undo_all ()
if (undobuf.undo[i].is_int) if (undobuf.undo[i].is_int)
*undobuf.undo[i].where.i = undobuf.undo[i].old_contents.i; *undobuf.undo[i].where.i = undobuf.undo[i].old_contents.i;
else else
*undobuf.undo[i].where.rtx = undobuf.undo[i].old_contents.rtx; *undobuf.undo[i].where.r = undobuf.undo[i].old_contents.r;
} }
...@@ -8073,15 +8073,15 @@ gen_rtx_combine (va_alist) ...@@ -8073,15 +8073,15 @@ gen_rtx_combine (va_alist)
for (i = previous_num_undos; i < undobuf.num_undo; i++) for (i = previous_num_undos; i < undobuf.num_undo; i++)
if (!undobuf.undo[i].is_int if (!undobuf.undo[i].is_int
&& GET_CODE (undobuf.undo[i].old_contents.rtx) == code && GET_CODE (undobuf.undo[i].old_contents.r) == code
&& GET_MODE (undobuf.undo[i].old_contents.rtx) == mode) && GET_MODE (undobuf.undo[i].old_contents.r) == mode)
{ {
for (j = 0; j < n_args; j++) for (j = 0; j < n_args; j++)
if (XEXP (undobuf.undo[i].old_contents.rtx, j) != args[j]) if (XEXP (undobuf.undo[i].old_contents.r, j) != args[j])
break; break;
if (j == n_args) if (j == n_args)
return undobuf.undo[i].old_contents.rtx; return undobuf.undo[i].old_contents.r;
} }
/* Otherwise make a new rtx. We know we have 1, 2, or 3 args. /* Otherwise make a new rtx. We know we have 1, 2, or 3 args.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment