Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/gcc Start implementing the new style libgcc "mknative"...



details:   https://anonhg.NetBSD.org/src/rev/8afa75237f57
branches:  trunk
changeset: 749440:8afa75237f57
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Nov 30 05:50:07 2009 +0000

description:
Start implementing the new style libgcc "mknative" converter which generates
BSD makefiles to build libgcc.  The goal is to build all functions rather
than managing the set of functions in gnu/lib/libgcc/Makefile.in by hand.

Because of the complexity of the build procedure, I leave not only generated
makefiles but also intermediate, analyzed data so that people can verify that
the conversion is done correctly.

diffstat:

 tools/gcc/mknative-gcc |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r b05db85b33b1 -r 8afa75237f57 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc    Mon Nov 30 05:22:55 2009 +0000
+++ b/tools/gcc/mknative-gcc    Mon Nov 30 05:50:07 2009 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mknative-gcc,v 1.25 2008/10/11 05:03:44 mrg Exp $
+#      $NetBSD: mknative-gcc,v 1.26 2009/11/30 05:50:07 uebayasi Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/gnu/dist/gcc.
@@ -49,6 +49,9 @@
 
 ##### gnu/lib/libgcc #####
 
+get_libgcc_new () {
+}
+
 get_libgcc () {
        _subdir="$1"
        mkdir -p $_TOP/gnu/lib/lib$_subdir/arch
@@ -78,6 +81,11 @@
                        EXTRA_HEADERS xm_defines \
                        tm_defines ${_extravars}
        } | write_mk gnu/lib/lib$_subdir/arch${_archsubdir}/$MACHINE_ARCH.mk
+
+       # Generate new style files.
+       if [ -n "${MKNATIVE_LIBGCC_NEW} ]
+               get_libgcc_new
+       fi
 }
 
 ##### gnu/lib/libgcov #####



Home | Main Index | Thread Index | Old Index