Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/gcc Move these analyzing functions into one place, get...
details: https://anonhg.NetBSD.org/src/rev/5d1d3f3e8ff5
branches: trunk
changeset: 749450:5d1d3f3e8ff5
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Mon Nov 30 08:20:23 2009 +0000
description:
Move these analyzing functions into one place, get_libgcc_new_analyze().
diffstat:
tools/gcc/mknative-gcc | 53 +++++++++++++++++++++++++++++--------------------
1 files changed, 31 insertions(+), 22 deletions(-)
diffs (83 lines):
diff -r 1e84be546e43 -r 5d1d3f3e8ff5 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc Mon Nov 30 08:05:41 2009 +0000
+++ b/tools/gcc/mknative-gcc Mon Nov 30 08:20:23 2009 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mknative-gcc,v 1.34 2009/11/30 08:05:41 uebayasi Exp $
+# $NetBSD: mknative-gcc,v 1.35 2009/11/30 08:20:23 uebayasi Exp $
#
# Shell script for generating all the constants needed for a native
# platform build of src/gnu/dist/gcc.
@@ -141,7 +141,7 @@
get_libgcc_list_objs_xflags fmx
}
-get_libgcc_libgcc_mk_libs_list_tmpsrcs_files () {
+get_libgcc_list_tmpsrcs () {
local _lib=$1
local _tmpallsrcs=$( mktemp /tmp/mknative-gcc._tmpallsrcs.XXXXXX )
@@ -173,6 +173,33 @@
rm -f $_tmpallsrcs
}
+get_libgcc_new_analyze () {
+ mkdir -p $_TOP/${_machine_arch_subdir}
+
+ get_libgcc_list_funcs_asm | \
+ writefile ${libgcc_db_funcs}.S
+
+ for _lib in libgcc_s.so libgcc.a libgcc_eh.a libgcov.a; do
+ get_libgcc_list_funcs_lib $_lib | \
+ writefile ${libgcc_db_funcs}.${_lib%.*}
+ done
+
+ 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}
+
+ for _lib in libgcc_s.so libgcc.a libgcc_eh.a libgcov.a; do
+ get_libgcc_list_tmpsrcs $_lib
+ done
+}
+
+#####
+
+get_libgcc_new_generate () {
+}
+
#####
get_libgcc_new () {
@@ -195,27 +222,9 @@
libgcc_srcs_mk_cppflags=${_machine_arch_subdir}/srcs.cppflags.mk
libgcc_srcs_mk_copts=${_machine_arch_subdir}/srcs.copts.mk
- # Collect data from gcc/Makefile and gcc/libgcc.mk.
-
- mkdir -p $_TOP/${_machine_arch_subdir}
-
- get_libgcc_list_funcs_asm | \
- writefile ${libgcc_db_funcs}.S
+ get_libgcc_new_analyze
- for _lib in libgcc_s.so libgcc.a libgcc_eh.a libgcov.a; do
- get_libgcc_list_funcs_lib $_lib | \
- writefile ${libgcc_db_funcs}.${_lib%.*}
- done
-
- 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}
-
- for _lib in libgcc_s.so libgcc.a libgcc_eh.a libgcov.a; do
- get_libgcc_libgcc_mk_libs_list_tmpsrcs_files $_lib
- done
+ get_libgcc_new_generate
}
get_libgcc () {
Home |
Main Index |
Thread Index |
Old Index