* config/s390/s390.c (legitimize_pic_address): Do not generate
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Apr 2002 16:02:16 +0000 (16:02 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Apr 2002 16:02:16 +0000 (16:02 +0000)
illegal address constant without CONST.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52425 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/s390/s390.c

index 935d980..9f6ec57 100644 (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.
index 131f6ec..c052e04 100644 (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);
                         }