I don't know if this is related to Eric's checkins tonight
but I can no longer build libgfortran on Darwin PPC. The build fails
at...
/bin/sh ./libtool --mode=compile /sw/src/fink.build/gcc4-4.1.999-20060908/darwin
_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc4-4.1.999-20060908/darwin_objdir/./gc
c/ -B/sw/lib/gcc4/powerpc-apple-darwin8/bin/ -B/sw/lib/gcc4/powerpc-apple-darwin
8/lib/ -isystem /sw/lib/gcc4/powerpc-apple-darwin8/include -isystem /sw/lib/gcc4
/powerpc-apple-darwin8/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.2-200609
08/libgfortran -I. -iquote../../../gcc-4.2-20060908/libgfortran/io -I../../../g
cc-4.2-20060908/libgfortran/../gcc -I../../../gcc-4.2-20060908/libgfortran/../gc
c/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmis
sing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -c -o
maxloc0_4_r16.lo `test -f 'generated/maxloc0_4_r16.c' || echo '../../../gcc-4.2
-20060908/libgfortran/'`generated/maxloc0_4_r16.c
/sw/src/fink.build/gcc4-4.1.999-20060908/darwin_objdir/./gcc/xgcc -B/sw/src/fink
.build/gcc4-4.1.999-20060908/darwin_objdir/./gcc/ -B/sw/lib/gcc4/powerpc-apple-d
arwin8/bin/ -B/sw/lib/gcc4/powerpc-apple-darwin8/lib/ -isystem /sw/lib/gcc4/powe
rpc-apple-darwin8/include -isystem /sw/lib/gcc4/powerpc-apc-4.2-20060908/libgfor
tran/../gcc -I../../../gcc-4.2-20060908/libgfortran/../gcc/config -I../.././gcc
-D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-st
yle-definition -Wextra -Wwrite-strings -O2 -g -O2 -c ../../../gcc-4.2-20060908/l
ibgfortran/generated/maxloc0_4_r16.c -fno-common -DPIC -o .libs/maxloc0_4_r16.o
/var/tmp//ccPhvheT.s:905:Unknown pseudo-op: .literal16
I was building with a reduced TImode patch so that I could test that 64-bit
support still worked in gfortran. This patch is...
diff -uNr gcc-4.2-20060816/gcc/config/rs6000/ppc64-fp.c
gcc-4.2-20060816.timode/gcc/config/rs6000/ppc64-fp.c
--- gcc-4.2-20060816/gcc/config/rs6000/ppc64-fp.c 2006-08-13
14:25:31.000000000 -0400
+++ gcc-4.2-20060816.timode/gcc/config/rs6000/ppc64-fp.c 2006-08-16
21:09:08.000000000 -0400
@@ -30,7 +30,7 @@
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */
-#if defined(__powerpc64__) || defined (__64BIT__)
+#if defined(__powerpc64__) || defined (__64BIT__) || defined(__ppc64__)
#define TMODES
#include "config/fp-bit.h"
diff -uNr gcc-4.2-20060816/gcc/config/rs6000/rs6000.h
gcc-4.2-20060816.timode/gcc/config/rs6000/rs6000.h
--- gcc-4.2-20060816/gcc/config/rs6000/rs6000.h 2006-08-13 14:25:31.000000000
-0400
+++ gcc-4.2-20060816.timode/gcc/config/rs6000/rs6000.h 2006-08-16
21:09:08.000000000 -0400
@@ -178,7 +178,7 @@
#ifdef IN_LIBGCC2
/* For libgcc2 we make sure this is a compile time constant */
-#if defined (__64BIT__) || defined (__powerpc64__)
+#if defined (__64BIT__) || defined (__powerpc64__) || defined (__ppc64__)
#undef TARGET_POWERPC64
#define TARGET_POWERPC64 1
#else
diff -uNr gcc-4.2-20060816/gcc/config/rs6000/t-darwin
gcc-4.2-20060816.timode/gcc/config/rs6000/t-darwin
--- gcc-4.2-20060816/gcc/config/rs6000/t-darwin 2006-08-13 14:25:30.000000000
-0400
+++ gcc-4.2-20060816.timode/gcc/config/rs6000/t-darwin 2006-08-16
21:09:08.000000000 -0400
@@ -1,4 +1,6 @@
LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/darwin-tramp.asm \
+ $(srcdir)/config/rs6000/ppc64-fp.c \
+ $(srcdir)/config/darwin-64.c \
$(srcdir)/config/rs6000/darwin-ldouble.c
LIB2FUNCS_STATIC_EXTRA = \
I am not rebuilding without that patch. However I don't believe the build
problem I am seeing is related to that patch since it craps out in the -m32
sections of the libgfortran build. Not good this close to branching.
Jack