Module Name:    src
Committed By:   mrg
Date:           Fri Jul  1 05:07:07 UTC 2011

Modified Files:
        src/external/gpl3/gcc/lib/libgcc: Makefile.inc

Log Message:
fix the _fixunssfsi _fixunsdfsi _fixunsxfsi functions.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/lib/libgcc/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/lib/libgcc/Makefile.inc
diff -u src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.6 src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.7
--- src/external/gpl3/gcc/lib/libgcc/Makefile.inc:1.6	Fri Jul  1 01:24:53 2011
+++ src/external/gpl3/gcc/lib/libgcc/Makefile.inc	Fri Jul  1 05:07:06 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.6 2011/07/01 01:24:53 mrg Exp $
+#	$NetBSD: Makefile.inc,v 1.7 2011/07/01 05:07:06 mrg Exp $
 
 .if ${MKGCC} != "no"
 .if exists(${.CURDIR}/../arch/${MACHINE_ARCH}.mk)
@@ -47,18 +47,19 @@
 
 # non swfloat versions 
 .for _p in _fix _fixuns
-. for _s in sf df xf tf
-LIB2FUNCS_ALL+=	${_p}${_s}di
+. for _m in sf df xf tf
+LIB2FUNCS_ALL+=	${_p}${_m}di
 . endfor
 .endfor
+
 .for _p in _float _floatun
-. for _s in sf df xf tf
-LIB2FUNCS_ALL+=	${_p}di${_s}
+. for _m in sf df xf tf
+LIB2FUNCS_ALL+=	${_p}di${_m}
 . endfor
 .endfor
 
 .for _m in sf df xf
-LIB2FUNCS_ALL+=	fixuns${_p}si
+LIB2FUNCS_ALL+=	_fixuns${_m}si
 .endfor
 
 LIB2FUNCS_SHORT:=${LIB2FUNCS_ALL}
@@ -155,3 +156,19 @@
 DPSRCS+=	unwind.h
 
 .include "../../Makefile.hacks"
+
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && \
+    (${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "armeb")
+${SRCS}: options.h
+
+optionlist: ${G_ALL_OPT_FILES} ${GCCARCH}/defs.mk Makefile ${DIST}/gcc/opt-gather.awk
+	${TOOL_AWK} -f ${DIST}/gcc/opt-gather.awk ${G_ALL_OPT_FILES} \
+		> ${.TARGET}
+
+options.h: optionlist ${DIST}/gcc/opt-functions.awk ${DIST}/gcc/opth-gen.awk
+	${TOOL_AWK} -f ${DIST}/gcc/opt-functions.awk \
+		-f ${DIST}/gcc/opth-gen.awk \
+		< optionlist > ${.TARGET}
+
+CLEANFILES+=	options.h optionlist
+.endif

Reply via email to