Bernd Schmidt <[email protected]> writes:
> I've tried again on x86_64, still no such failure. Are you quite sure
> the binutils directory is up-to-date? (Try a clean checkout with CVS).
It was up-to-date, but somehow mangled (haven't yet investigated
how/why). Anyway, with a fresh anon-CVS checkout of the 2.22 branch, I
can now build libgcc up to the failure point.
> You can drop most of the gcc configure options if the tools are in your
> path.
I wasn't completely certain about it and wanted to avoid a possible
source of problems.
I've now managed to reproduce the problem. In a checkout of the gcc
tree before my patches, unwind-dw2.o isn't built. I could trace this to
LIB2ADD_EH not being overridden any longer, so the default was used. I
had missed the addition of libgcc/config/c6x/t-c6x-elf since I've
normalized the names of the target fragments to consistently use
$cpu/t-elf, not $cpu/t-$cpu-elf.
Simply merging the contents of c6x/t-c6x-elf into c6x/t-elf allowed the
libgcc build to complete for me.
Here's the patch I've come up with. Should I commit it now or would you
like to do a full testsuite run first?
Sorry again for the trouble.
Rainer
2011-11-03 Rainer Orth <[email protected]>
* config/c6x/t-elf (LIB2ADDEH): Set.
* config/c6x/t-c6x-elf: Remove.
# HG changeset patch
# Parent 42f16488e80434634dcd1100a993e7f81c37ada8
Restore c6x-elf bootstrap
diff --git a/libgcc/config/c6x/t-c6x-elf b/libgcc/config/c6x/t-c6x-elf
deleted file mode 100644
--- a/libgcc/config/c6x/t-c6x-elf
+++ /dev/null
@@ -1,4 +0,0 @@
-LIB2ADDEH = $(srcdir)/config/c6x/unwind-c6x.c \
- $(srcdir)/config/c6x/libunwind.S \
- $(srcdir)/config/c6x/pr-support.c $(srcdir)/unwind-c.c
-
diff --git a/libgcc/config/c6x/t-elf b/libgcc/config/c6x/t-elf
--- a/libgcc/config/c6x/t-elf
+++ b/libgcc/config/c6x/t-elf
@@ -22,6 +22,10 @@ LIB2ADD = $(srcdir)/config/c6x/gef.c \
# Avoid failures when the user's GOT becomes too large.
HOST_LIBGCC2_CFLAGS = -msdata=none
+LIB2ADDEH = $(srcdir)/config/c6x/unwind-c6x.c \
+ $(srcdir)/config/c6x/libunwind.S \
+ $(srcdir)/config/c6x/pr-support.c $(srcdir)/unwind-c.c
+
# Assemble startup files.
crti.o: $(srcdir)/config/c6x/crti.S
$(crt_compile) -c $(CRTSTUFF_T_CFLAGS) $<
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University