From: Dominik Vogt Date: Mon, 21 Dec 2015 11:40:42 +0000 (+0000) Subject: S/390: Fix base reg condition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b729f5806a6486bcdc7b4476d0d2d2b536494c0;p=gcc.git 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 --- 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 ();