This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Massive breakage with your libgcc patches
Bernd Schmidt <bernds@codesourcery.com> writes:
> On 11/03/11 20:20, Rainer Orth wrote:
>>
>> * config/c6x/t-elf (LIB2ADDEH): Set.
>> * config/c6x/t-c6x-elf: Remove.
>
> It builds now, but parts of libgcc are missing. There's no sign of
> muldf3, for examples.
I found the problem: before, LIB2ADD was passed in from gcc/config via
libgcc.mvars, and added to in t-softfp. Now the order of the t-*
fragments has been kept the same, with the assignment to LIB2ADD in
c6x/t-elf overriding what has been constructed by t-softfp before.
The following patch did the trick for me, could you give it a try?
Thanks.
Rainer
2011-11-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/c6x/t-elf (LIB2ADD): Add instead of assigning.
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
@@ -8,7 +8,7 @@ LIB1ASMFUNCS += _push_rts _pop_rts _call
LIB2FUNCS_EXCLUDE = _cmpdi2 _ucmpdi2 _gcc_bcmp _eprintf _clzsi _clzdi
-LIB2ADD = $(srcdir)/config/c6x/gef.c \
+LIB2ADD += $(srcdir)/config/c6x/gef.c \
$(srcdir)/config/c6x/gtf.c \
$(srcdir)/config/c6x/lef.c \
$(srcdir)/config/c6x/ltf.c \
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University