Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/gcc Handle cases where *.asm is listed in LIB2FUNCS_EX...
details: https://anonhg.NetBSD.org/src/rev/dfbe8432b962
branches: trunk
changeset: 749499:dfbe8432b962
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Tue Dec 01 03:13:26 2009 +0000
description:
Handle cases where *.asm is listed in LIB2FUNCS_EXTRA (gcc/config/rs6000).
diffstat:
tools/gcc/mknative-gcc | 32 ++++++++++++++++++++++++--------
1 files changed, 24 insertions(+), 8 deletions(-)
diffs (55 lines):
diff -r 79dcf12a9654 -r dfbe8432b962 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc Tue Dec 01 02:37:07 2009 +0000
+++ b/tools/gcc/mknative-gcc Tue Dec 01 03:13:26 2009 +0000
@@ -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 \
Home |
Main Index |
Thread Index |
Old Index