From b30d21159d82a20b665f08be437c0687b1bce814 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 17 Apr 2002 16:02:16 +0000 Subject: [PATCH] s390.c (legitimize_pic_address): Do not generate illegal address constant without CONST. * config/s390/s390.c (legitimize_pic_address): Do not generate illegal address constant without CONST. From-SVN: r52425 --- gcc/ChangeLog | 5 +++++ gcc/config/s390/s390.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 935d980af1b..9f6ec57e1fb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-04-17 Ulrich Weigand + + * config/s390/s390.c (legitimize_pic_address): Do not generate + illegal address constant without CONST. + 2002-04-17 Kaveh R. Ghazi * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64. diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 131f6ecbb60..c052e049fa6 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -1711,6 +1711,7 @@ legitimize_pic_address (orig, reg) { int even = INTVAL (op1) - 1; op0 = gen_rtx_PLUS (Pmode, op0, GEN_INT (even)); + op0 = gen_rtx_CONST (Pmode, op0); op1 = GEN_INT (1); }