Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/lib/libgcc hackaround a problem on mips64 ...



details:   https://anonhg.NetBSD.org/src/rev/e80f2305f1dd
branches:  trunk
changeset: 344333:e80f2305f1dd
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Mar 23 05:28:01 2016 +0000

description:
hackaround a problem on mips64 in soft-fp between libgcc and our libc.

i'm not 100% sure how this should work (matt?), as now we have some
functions coming from libc and some from libgcc, but this at least
builds now.

diffstat:

 external/gpl3/gcc/lib/libgcc/libgcc/Makefile   |  11 +++++++++--
 external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile |  11 +++++++++--
 2 files changed, 18 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r da550efa13e3 -r e80f2305f1dd external/gpl3/gcc/lib/libgcc/libgcc/Makefile
--- a/external/gpl3/gcc/lib/libgcc/libgcc/Makefile      Wed Mar 23 05:25:51 2016 +0000
+++ b/external/gpl3/gcc/lib/libgcc/libgcc/Makefile      Wed Mar 23 05:28:01 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.24 2016/03/23 00:20:18 mrg Exp $
+#      $NetBSD: Makefile,v 1.25 2016/03/23 05:28:01 mrg Exp $
 
 REQUIRETOOLS=  yes
 NOLINT=                # defined
@@ -22,8 +22,15 @@
                ${GNUHOSTDIST}/gcc/config/floatunsisf.c
 .endif
 
+# XXXGCC5 GCC 5.3 has all these in libgcc and we have them in libc.
+.if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb"
+LIB2ADD_EDITED= 
${G_LIB2ADD:T:Nfloatsisf.c:Nfloatunsisf.c:Nfloatsidf.c:Nfloatunsidf.c:Nfixsfsi.c:Nextendsfdf2.c:Naddsf3.c:Nmulsf3.c:Ndivsf3.c:Nadddf3.c:Nsubdf3.c:Nmuldf3.c:Ndivdf3.c:Nfixdfsi.c:S/.asm/.S/}
+.else
+LIB2ADD_EDITED=        ${G_LIB2ADD:T:S/.asm/.S/}
+.endif
+
 SRCS+=         ${LIB2FUNCS} ${LIB2FUNCS_ST} ${LIB2DIVMOD} \
-               ${G_LIB2ADD:T:S/.asm/.S/} \
+               ${LIB2ADD_EDITED} \
                ${LIB2ADD_HACK:T:S/.asm/.S/} \
                ${G_LIB2ADD_ST:T} ${LIB1ASMFUNCS}
 .if ${MKPIC} == "no"
diff -r da550efa13e3 -r e80f2305f1dd external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile
--- a/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile    Wed Mar 23 05:25:51 2016 +0000
+++ b/external/gpl3/gcc/lib/libgcc/libgcc_s/Makefile    Wed Mar 23 05:28:01 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.12 2016/03/23 00:20:18 mrg Exp $
+#      $NetBSD: Makefile,v 1.13 2016/03/23 05:28:01 mrg Exp $
 
 USE_SHLIBDIR=  yes
 REQUIRETOOLS=  yes
@@ -28,8 +28,15 @@
                ${GNUHOSTDIST}/gcc/config/floatunsisf.c
 .endif
 
+# XXXGCC5 GCC 5.3 has all these in libgcc and we have them in libc.
+.if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb"
+LIB2ADD_EDITED= 
${G_LIB2ADD:T:Nfloatsisf.c:Nfloatunsisf.c:Nfloatsidf.c:Nfloatunsidf.c:Nfixsfsi.c:Nextendsfdf2.c:Naddsf3.c:Nmulsf3.c:Ndivsf3.c:Nadddf3.c:Nsubdf3.c:Nmuldf3.c:Ndivdf3.c:Nfixdfsi.c:S/.asm/.S/}
+.else
+LIB2ADD_EDITED=        ${G_LIB2ADD:T:S/.asm/.S/}
+.endif
+
 SRCS+=         ${LIB2FUNCS} ${LIB2DIVMOD} ${LIB2_EH} ${LIB2_EHASM} \
-               ${G_LIB2ADD:T:S/.asm/.S/} \
+               ${LIB2ADD_EDITED} \
                ${LIB2ADD_HACK:T:S/.asm/.S/} \
                ${G_LIB2ADD_ST:T} ${LIB1ASMFUNCS}
 



Home | Main Index | Thread Index | Old Index