Problems building llvm-gcc-4.2 on ppc32, OS X 10.4.10

Hello, Michael

Hi, I'm guessing that no one has tried this exact combination yet.

Some quick notes, which can be not connected to your problem.

1. You might need the following patch for FP constants to work properly:
diff --git a/gcc/llvm-convert.cpp b/gcc/llvm-convert.cpp
index 4c9c8d0..db8c6ba 100644
--- a/gcc/llvm-convert.cpp
+++ b/gcc/llvm-convert.cpp
@@ -5157,11 +5157,6 @@ Constant
*TreeConstantToLLVM::ConvertREAL_CST(tree exp) {
   UArr[0] = RealArr[0]; // Long -> int convert
   UArr[1] = RealArr[1];

- // FIXME: verify on big-endian targets and cross from big- to little-
- // targets
- std::swap(UArr[0], UArr[1]);

I'm not sure, but try hacking out the references to 10.5 from gcc/config/t-slibgcc-darwin

I don't know if there is a way to detect the availability of leopard features or not. If so, that would be better than hacking :slight_smile: