From 0b729f5806a6486bcdc7b4476d0d2d2b536494c0 Mon Sep 17 00:00:00 2001 From: Dominik Vogt Date: Mon, 21 Dec 2015 11:40:42 +0000 Subject: [PATCH] S/390: Fix base reg condition. 2015-12-21 Dominik Vogt * config/s390/s390.c (s390_emit_prologue): Fix base reg condition. From-SVN: r231876 --- gcc/ChangeLog | 4 ++++ gcc/config/s390/s390.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf1a617237d..274118fee96 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-12-21 Dominik Vogt + + * config/s390/s390.c (s390_emit_prologue): Fix base reg condition. + 2015-12-21 Claudiu Zissulescu * config/arc/builtins.def: New file. diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index cba88bbb0fc..16045f07a26 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -9593,7 +9593,7 @@ s390_init_frame_layout (void) for (br = 5; br >= 2 && df_regs_ever_live_p (br); br--) ; cfun->machine->base_reg = - gen_rtx_REG (Pmode, (br > 0) ? br : BASE_REGNUM); + gen_rtx_REG (Pmode, (br >= 2) ? br : BASE_REGNUM); } s390_register_info (); -- 2.30.2