This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

happy fun 3.3 branch darwin bootstrap


See PR 13960.  Bootstrapped & tested on powerpc-darwin.

-- 
- Geoffrey Keating <geoffk@apple.com>

===File ~/patches/gcc-33-losumaddress.patch=================
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.16114.2.897
diff -u -p -u -p -r1.16114.2.897 ChangeLog
--- ChangeLog	30 Jan 2004 07:19:10 -0000	1.16114.2.897
+++ ChangeLog	2 Feb 2004 04:39:33 -0000
@@ -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: config/rs6000/rs6000.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.237.2.9
diff -u -p -u -p -r1.237.2.9 rs6000.h
--- config/rs6000/rs6000.h	16 Jan 2004 15:05:37 -0000	1.237.2.9
+++ config/rs6000/rs6000.h	2 Feb 2004 04:39:33 -0000
@@ -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))	\
============================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]