Module Name: src
Committed By: uebayasi
Date: Tue Dec 1 03:13:26 UTC 2009
Modified Files:
src/tools/gcc: mknative-gcc
Log Message:
Handle cases where *.asm is listed in LIB2FUNCS_EXTRA (gcc/config/rs6000).
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/tools/gcc/mknative-gcc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.41 src/tools/gcc/mknative-gcc:1.42
--- src/tools/gcc/mknative-gcc:1.41 Mon Nov 30 14:34:17 2009
+++ src/tools/gcc/mknative-gcc Tue Dec 1 03:13:26 2009
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mknative-gcc,v 1.41 2009/11/30 14:34:17 uebayasi Exp $
+# $NetBSD: mknative-gcc,v 1.42 2009/12/01 03:13:26 uebayasi Exp $
#
# Shell script for generating all the constants needed for a native
# platform build of src/gnu/dist/gcc.
@@ -50,14 +50,29 @@
##### gnu/lib/libgcc #####
get_libgcc_list_funcs_asm () {
- getvars gcc/Makefile LIB1ASMFUNCS | {
- # print newline separated list
- sed -e '
- s,^.*=,,
- s, *$,,
- s, *, ,g
- s, ,\
+ {
+ getvars gcc/Makefile LIB1ASMFUNCS | {
+ # print newline separated list
+ sed -e '
+ s,^.*=,,
+ s, *$,,
+ s, *, ,g
+ s, ,\
,g'
+ }
+ getvars gcc/Makefile LIB2FUNCS_EXTRA | {
+ # print newline separated list
+ sed -e '
+ s,^.*=,,
+ s, *$,,
+ s, *, ,g
+ s, ,\
+,g' | \
+ sed -ne '
+ /\.S$/ { s,^.*/,,; s,\.S$,,; p; }
+ /\.asm$/ { s,^.*/,,; s,\.asm$,,; p; }
+ '
+ }
} | {
# print foo and foo_s
sed -ne '
@@ -346,6 +361,7 @@
INCLUDES LIB2ADD LIB2ADDEH \
LIB1ASMFUNCS LIB1ASMSRC \
LIB2_DIVMOD_FUNCS LIB2FUNCS_ST \
+ LIB2FUNCS_EXTRA \
LIBGCC2_CFLAGS \
SHLIB_MKMAP SHLIB_MKMAP_OPTS \
SHLIB_MAPFILES SHLIB_NM_FLAGS \