This is the mail archive of the gcc-bugs@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]

[Bug bootstrap/13960] [3.3 Regression] Cannot bootstrap on powerpc-apple-darwin


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-01 21:19 -------
Actually the problem is that is going to reject it as TARGET_MACHO is not checked.  This was fixed 
on the mainline by http://gcc.gnu.org/ml/gcc-patches/2003-12/msg01743.html.
This patch fixes that:
Index: rs6000.h
============================================================
=======
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.237.2.9
diff -u -p -r1.237.2.9 rs6000.h
--- rs6000.h    16 Jan 2004 15:05:37 -0000      1.237.2.9
+++ rs6000.h    1 Feb 2004 21:18:23 -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))      \

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13960


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