projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50dc637
)
(mark_user_reg): New function.
author
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 29 Sep 1996 23:05:36 +0000
(19:05 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 29 Sep 1996 23:05:36 +0000
(19:05 -0400)
From-SVN: r12869
gcc/emit-rtl.c
patch
|
blob
|
history
diff --git
a/gcc/emit-rtl.c
b/gcc/emit-rtl.c
index aaebc6fa65b332f65972f0b69efafcbfdfe762c7..522b95ff1c972d048e61c3481027f9d58b106e60 100644
(file)
--- a/
gcc/emit-rtl.c
+++ b/
gcc/emit-rtl.c
@@
-540,6
+540,23
@@
gen_reg_rtx (mode)
return val;
}
+/* Identify REG (which may be a CONCAT) as a user register. */
+
+void
+mark_user_reg (reg)
+ rtx reg;
+{
+ if (GET_CODE (reg) == CONCAT)
+ {
+ REG_USERVAR_P (XEXP (reg, 0)) = 1;
+ REG_USERVAR_P (XEXP (reg, 1)) = 1;
+ }
+ else if (GET_CODE (reg) == REG)
+ REG_USERVAR_P (reg) = 1;
+ else
+ abort ();
+}
+
/* Identify REG as a probable pointer register and show its alignment
as ALIGN, if nonzero. */