i386.c (legitimate_pic_address_disp_p): Allow UNSPEC_NTPOFF and UNSPEC_DTPOFF to...
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Sep 2002 16:40:31 +0000 (18:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Sep 2002 16:40:31 +0000 (18:40 +0200)
* config/i386/i386.c (legitimate_pic_address_disp_p): Allow
UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.

From-SVN: r57351

gcc/ChangeLog
gcc/config/i386/i386.c

index beb2ced658a586979d25a9bee27ac6b9fe0a1dfc..83d381352fbc1aa01acb0341b9a97a32c9a646ac 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-20  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
+       UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
+
 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
 
        * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
index 43b0455c48ff36df6f40194b66ae118bd21f48d1..0926ef62fc4819df90593435dfdb7139a4380c95 100644 (file)
@@ -5081,14 +5081,8 @@ legitimate_pic_address_disp_p (disp)
        return false;
       return initial_exec_symbolic_operand (XVECEXP (disp, 0, 0), Pmode);
     case UNSPEC_NTPOFF:
-      /* ??? Could support offset here.  */
-      if (saw_plus)
-       return false;
       return local_exec_symbolic_operand (XVECEXP (disp, 0, 0), Pmode);
     case UNSPEC_DTPOFF:
-      /* ??? Could support offset here.  */
-      if (saw_plus)
-       return false;
       return local_dynamic_symbolic_operand (XVECEXP (disp, 0, 0), Pmode);
     }