aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2016-09-20 15:28:02 +0000
committerBernd Edlinger <bernd.edlinger@hotmail.de>2016-09-20 15:28:02 +0000
commit41b26ddfeef900f912089ce2bcc48366aac5351d (patch)
treeb02621fc31e7a46c281f918f1705e06476d4e282
parent25088a9570316a0a24b85464d526a86e2a505270 (diff)
2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
* config/var/vax.h (ELIMINABLE_REGS): Define. (INITIAL_ELIMINATION_OFFSET): Define. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@240269 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/vax/vax.h10
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fbc0724fc2b..73a439e3233 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * config/var/vax.h (ELIMINABLE_REGS): Define.
+ (INITIAL_ELIMINATION_OFFSET): Define.
+
2016-09-20 Jakub Jelinek <jakub@redhat.com>
PR middle-end/77624
diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h
index 77d9e7f0729..427c352bc22 100644
--- a/gcc/config/vax/vax.h
+++ b/gcc/config/vax/vax.h
@@ -333,6 +333,16 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
} \
while (0)
+/* This macro specifies a table of register pairs used to eliminate
+ unneeded registers that point into the stack frame. */
+#define ELIMINABLE_REGS {{FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}}
+
+/* On the VAX, FRAME_POINTER_REQUIRED is always 1, so the definition of this
+ macro doesn't matter for register eliminations, but it should still
+ give realistic data for rtx_addr_can_trap_p. */
+#define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET) \
+ ((OFFSET) = get_frame_size ())
+
/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
the stack pointer does not matter. The value is tested only in
functions that have frame pointers.