aboutsummaryrefslogtreecommitdiff
path: root/gcc/regs.h
diff options
context:
space:
mode:
authorMichael Hayes <m.hayes@elec.canterbury.ac.nz>1998-09-30 18:09:47 +0000
committerJeff Law <law@gcc.gnu.org>1998-09-30 12:09:47 -0600
commit1e326708e83b2e03807c689f14ed3772cd346efc (patch)
tree4cad448709fc0bd1befbe6fec3245d112509581d /gcc/regs.h
parentb8c08e043a09a5e0ccb342bc89ffe5d39d206635 (diff)
downloadgcc-1e326708e83b2e03807c689f14ed3772cd346efc.zip
gcc-1e326708e83b2e03807c689f14ed3772cd346efc.tar.gz
gcc-1e326708e83b2e03807c689f14ed3772cd346efc.tar.bz2
regs.h (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
* regs.h (HARD_REGNO_CALL_PART_CLOBBERED): New macro. * local-alloc.c (find_free_reg): Use it. * global.c (find_reg): Likewise. * tm.texi: Document HARD_REGNO_CALL_PART_CLOBBERED. From-SVN: r22688
Diffstat (limited to 'gcc/regs.h')
-rw-r--r--gcc/regs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/regs.h b/gcc/regs.h
index 02bdf92..a4065e6 100644
--- a/gcc/regs.h
+++ b/gcc/regs.h
@@ -217,6 +217,12 @@ extern int caller_save_needed;
choose_hard_reg_mode (REGNO, NREGS)
#endif
+/* Registers that get partially clobbered by a call in a given mode.
+ These must not be call used registers. */
+#ifndef HARD_REGNO_CALL_PART_CLOBBERED
+#define HARD_REGNO_CALL_PART_CLOBBERED(REGNO, MODE) 0
+#endif
+
/* Allocated in local_alloc. */
/* A list of SCRATCH rtl allocated by local-alloc. */