Source-Changes-HG archive

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

[src/trunk]: src/tools/gcc get libdecnumber info out of GCC.



details:   https://anonhg.NetBSD.org/src/rev/6cd2b4d203cd
branches:  trunk
changeset: 766615:6cd2b4d203cd
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 29 02:02:38 2011 +0000

description:
get libdecnumber info out of GCC.

diffstat:

 tools/gcc/Makefile     |   5 +++--
 tools/gcc/mknative-gcc |  25 +++++++++++++++++++------
 2 files changed, 22 insertions(+), 8 deletions(-)

diffs (86 lines):

diff -r a395423665c3 -r 6cd2b4d203cd tools/gcc/Makefile
--- a/tools/gcc/Makefile        Wed Jun 29 02:01:37 2011 +0000
+++ b/tools/gcc/Makefile        Wed Jun 29 02:02:38 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.39 2011/06/23 05:42:37 mrg Exp $
+#      $NetBSD: Makefile,v 1.40 2011/06/29 02:02:38 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -142,7 +142,8 @@
                (cd .native && ${MKNATIVE_ENV} ${BUILD_MAKE} all-build-libiberty)
        PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
                (cd .native && ${MKNATIVE_ENV} ${BUILD_MAKE} configure-gcc configure-libcpp) && \
-               (cd .native && ${MKNATIVE_ENV} ${BUILD_MAKE} configure-libiberty)
+               (cd .native && ${MKNATIVE_ENV} ${BUILD_MAKE} configure-libiberty) && \
+               (cd .native && ${MKNATIVE_ENV} ${BUILD_MAKE} configure-libdecnumber)
        # edit Makefile so that maybe-all-gcc does not depend on all-gcc any more.
                (cd .native && mv Makefile Makefile.config && \
                        ${TOOL_SED} -e 's/\(maybe-all-gcc:\) all-gcc/\1/' \
diff -r a395423665c3 -r 6cd2b4d203cd tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc    Wed Jun 29 02:01:37 2011 +0000
+++ b/tools/gcc/mknative-gcc    Wed Jun 29 02:02:38 2011 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mknative-gcc,v 1.50 2011/06/28 04:30:32 mrg Exp $
+#      $NetBSD: mknative-gcc,v 1.51 2011/06/29 02:02:38 mrg Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/gnu/dist/gcc.
@@ -434,6 +434,16 @@
                <$_TMPDIR/libiberty/config.h
 }
 
+##### lib/libdecnumber #####
+
+get_libdecnumber () {
+       _subdir="$1"
+
+       mkdir -p $_OUTDIR/lib/$_subdir/arch/$MACHINE_ARCH
+       write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/config.h \
+               <$_TMPDIR/libdecnumber/config.h
+}
+
 ##### gnu/lib/libobjc #####
 
 get_libobjc () {
@@ -567,7 +577,7 @@
                getvars gcc/Makefile \
                        F77_OBJS | sed 's/f\///g'
                case ${_subdir} in
-               gcc4)
+               gcc4 | gcc)
                        getvars libcpp/Makefile \
                                libcpp_a_OBJS
                        ;;
@@ -592,16 +602,18 @@
                hfiles='auto-host gencheck configargs gthr-default tm bconfig config multilib'
                ;;
        gcc)
-               write_c $_OUTDIRBASE/usr.bin/$_subdir/libcpp/arch/$MACHINE_ARCH/config.h <$_TMPDIR/libcpp/config.h
-               hfiles='auto-host configargs gthr-default tm bconfig config multilib'
+               mkdir -p $_OUTDIR/usr.bin/libcpp/arch/$MACHINE_ARCH
+               write_c $_OUTDIRBASE/usr.bin/libcpp/arch/$MACHINE_ARCH/config.h <$_TMPDIR/libcpp/config.h
+               hfiles='auto-host configargs gthr-default tm bconfig config multilib bversion plugin-version'
                ;;
        esac
        for f in $hfiles; do
                write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gcc/$f.h
        done
 
-       write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/bversion.h \
-               <$_TMPDIR/gcc/bversion.h
+       for f in all-tree.def; do
+               write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f <$_TMPDIR/gcc/$f
+       done
 }
 
 ##### main #####
@@ -642,6 +654,7 @@
        get_gcc_libiberty gcc
        get_libobjc libobjc
        get_libstdcxx_v3 libstdc++-v3
+       get_libdecnumber libdecnumber
        exit 0
        ;;
 



Home | Main Index | Thread Index | Old Index