Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/gcc Generate *.o -> template *.[cS] ("tmpsrc") mapping.
details: https://anonhg.NetBSD.org/src/rev/6a09e724e854
branches: trunk
changeset: 749447:6a09e724e854
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Mon Nov 30 07:19:58 2009 +0000
description:
Generate *.o -> template *.[cS] ("tmpsrc") mapping.
Functions are built from a template (tmpsrc). We create wrapper sources
(src) and define necessary defines and #include tmpsrc.
diffstat:
tools/gcc/mknative-gcc | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 3db4c4c8f76e -r 6a09e724e854 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc Mon Nov 30 07:08:03 2009 +0000
+++ b/tools/gcc/mknative-gcc Mon Nov 30 07:19:58 2009 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mknative-gcc,v 1.31 2009/11/30 07:08:03 uebayasi Exp $
+# $NetBSD: mknative-gcc,v 1.32 2009/11/30 07:19:58 uebayasi Exp $
#
# Shell script for generating all the constants needed for a native
# platform build of src/gnu/dist/gcc.
@@ -106,6 +106,17 @@
} | sort
}
+get_libgcc_list_objs_tmpsrcs () {
+ grep 'GCC_FOR_TARGET.*\.o$' build/gcc/libgcc.mk | \
+ sed -ne '
+ s,^.* -c \([^ ]*\).* -o .*/\([^ ]*\.o\)$,\2 \1,
+ # basename
+ /\$/ { s,\$.*/,,; }
+ /\// { s,\/.*/,,; }
+ p
+ ' | sort
+}
+
get_libgcc_list_objs_xflags () {
local _flags=$1
@@ -164,6 +175,7 @@
get_libgcc_list_objs_libs | writefile ${libgcc_db_objs_libs}
get_libgcc_list_objs_srcs | writefile ${libgcc_db_objs_srcs}
+ get_libgcc_list_objs_tmpsrcs | writefile ${libgcc_db_objs_tmpsrcs}
get_libgcc_list_objs_cppflags | writefile ${libgcc_db_objs_cppflags}
get_libgcc_list_objs_copts | writefile ${libgcc_db_objs_copts}
}
Home |
Main Index |
Thread Index |
Old Index