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: r52424
This commit is contained in:
Ulrich Weigand 2002-04-17 15:59:45 +00:00 committed by Ulrich Weigand
parent 3729d34e4a
commit 73a188b1e5
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (legitimize_pic_address): Do not generate
illegal address constant without CONST.
2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.

View File

@ -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);
}