aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-09-29 19:05:36 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-09-29 19:05:36 -0400
commit754fdcca7a6c812a0917ca6cb4a79a2e3e32c897 (patch)
treee1dd07e9fff581cdcb78bd4df3cf19e93b686a34 /gcc
parent50dc6373e56ad31b2fca259589d4282b7abb5598 (diff)
downloadgcc-754fdcca7a6c812a0917ca6cb4a79a2e3e32c897.zip
gcc-754fdcca7a6c812a0917ca6cb4a79a2e3e32c897.tar.gz
gcc-754fdcca7a6c812a0917ca6cb4a79a2e3e32c897.tar.bz2
(mark_user_reg): New function.
From-SVN: r12869
Diffstat (limited to 'gcc')
-rw-r--r--gcc/emit-rtl.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index aaebc6f..522b95f 100644
--- 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. */