]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Accept lo_sum addresses on Darwin.
authorGeoffrey Keating <geoffk@apple.com>
Mon, 2 Feb 2004 04:40:49 +0000 (04:40 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Mon, 2 Feb 2004 04:40:49 +0000 (04:40 +0000)
* config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Accept
lo_sum addresses on Darwin.

From-SVN: r77095

gcc/ChangeLog
gcc/config/rs6000/rs6000.h

index 67195511b931b1aaaf6bf418a5869efed80d806b..4d5f79d171e4e3be67854fc3e01ab4df1299271f 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-01  Geoffrey Keating  <geoffk@apple.com>
+
+       PR bootstrap/13960
+       * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Accept
+       lo_sum addresses on Darwin.
+
 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * config/sparc/sparc.c: Update copyright.
index 05298b90083c69c9358417885ca8e55992a9946d..65cd1600ea2ac51974a1f0a618a7b92c616e9343 100644 (file)
@@ -2110,8 +2110,8 @@ typedef struct rs6000_args
   (GET_CODE (X) == REG && INT_REG_OK_FOR_BASE_P (X, (STRICT)))
 
 #define LEGITIMATE_LO_SUM_ADDRESS_P(MODE, X, STRICT)   \
-  (TARGET_ELF                                          \
-   && ! flag_pic && ! TARGET_TOC                       \
+  (((TARGET_ELF && ! flag_pic) || TARGET_MACHO)                \
+   && ! TARGET_TOC                                     \
    && GET_MODE_NUNITS (MODE) == 1                      \
    && (GET_MODE_BITSIZE (MODE) <= 32                   \
        || (TARGET_HARD_FLOAT && TARGET_FPRS && (MODE) == DFmode))      \