From owner-freebsd-sparc Sat May 18 0:51:35 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 580AE37B400 for ; Sat, 18 May 2002 00:51:27 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.3/8.12.2) with ESMTP id g4I7pNJn021187 for ; Sat, 18 May 2002 00:51:24 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.3/8.12.3/Submit) id g4I7pNRR021186 for sparc64@freebsd.org; Sat, 18 May 2002 00:51:23 -0700 (PDT) Date: Sat, 18 May 2002 00:51:23 -0700 From: "David O'Brien" To: sparc64@freebsd.org Subject: patch for src/gnu/lib/libgcc Message-ID: <20020518005123.A21176@dragon.nuxi.com> Reply-To: obrien@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I need to make sure this will not break IA-64, but this fixes the Sparc64 build. Index: Makefile =================================================================== RCS file: /home/ncvs/src/gnu/lib/libgcc/Makefile,v retrieving revision 1.43 diff -u -r1.43 Makefile --- Makefile 17 May 2002 08:59:13 -0000 1.43 +++ Makefile 18 May 2002 07:43:06 -0000 @@ -99,7 +99,7 @@ .if ${TARGET_ARCH} == "arm" # from config/arm/t-strongarm-elf -LIB1ASMSRC = arm/lib1funcs.asm +LIB1ASMSRC = lib1funcs.asm LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func # We want fine grained libraries, so use the new code to build the # floating point emulation libraries. @@ -108,7 +108,7 @@ .if ${TARGET_ARCH} == "ia64" # from config/ia64/t-ia64 -LIB1ASMSRC = ia64/lib1funcs.asm +LIB1ASMSRC = lib1funcs.asm LIB1ASMFUNCS = __divtf3 __divdf3 __divsf3 \ __divdi3 __moddi3 __udivdi3 __umoddi3 \ __divsi3 __modsi3 __udivsi3 __umodsi3 __save_stack_nonlocal \ @@ -213,24 +213,29 @@ .endif .if defined(LIB1ASMSRC) -${ASM_T}: ${LIB1ASMSRC} - ${XCC} -x assembler-with-cpp -c ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/config/${LIB1ASMSRC} +.for _lib1asmsrc in ${LIB1ASMSRC} +${ASM_T}: ${_lib1asmsrc} + ${XCC} -x assembler-with-cpp -c ${CFLAGS} -DL${.PREFIX} \ + -o ${.TARGET} ${.ALLSRC:N*.h} @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} @mv ${.TARGET}.tmp ${.TARGET} .if !defined(NOPIC) -${ASM_S}: ${LIB1ASMSRC} - ${XCC} -x assembler-with-cpp -c ${PICFLAG} ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/config/${LIB1ASMSRC} +${ASM_S}: ${_lib1asmsrc} + ${XCC} -x assembler-with-cpp -c ${PICFLAG} ${CFLAGS} -DL${.PREFIX} \ + -o ${.TARGET} ${.ALLSRC:N*.h} @${LD} -o ${.TARGET}.tmp -x -r ${.TARGET} @mv ${.TARGET}.tmp ${.TARGET} .endif .if !defined(NOPROFILE) -${ASM_P}: ${LIB1ASMSRC} - ${XCC} -x assembler-with-cpp -c -p ${CFLAGS} -DL${.PREFIX} -o ${.TARGET} ${GCCDIR}/config/${TARGET_ARCH}/${LIB1ASMSRC} +${ASM_P}: ${_lib1asmsrc} + ${XCC} -x assembler-with-cpp -p -c ${CFLAGS} -DL${.PREFIX} \ + -o ${.TARGET} ${.ALLSRC:N*.h} @${LD} -o ${.TARGET}.tmp -X -r ${.TARGET} @mv ${.TARGET}.tmp ${.TARGET} .endif +.endfor .endif .include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message