Source-Changes-HG archive

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

[src/trunk]: src/tools/gcc very first baby steps towards GCC 5.3 mknative.



details:   https://anonhg.NetBSD.org/src/rev/6297e75315e3
branches:  trunk
changeset: 344131:6297e75315e3
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Mar 15 03:22:06 2016 +0000

description:
very first baby steps towards GCC 5.3 mknative.

diffstat:

 tools/gcc/mknative-gcc |  17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diffs (62 lines):

diff -r bad2bfc7f590 -r 6297e75315e3 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc    Tue Mar 15 03:19:38 2016 +0000
+++ b/tools/gcc/mknative-gcc    Tue Mar 15 03:22:06 2016 +0000
@@ -1,10 +1,10 @@
 #!/bin/sh
-#      $NetBSD: mknative-gcc,v 1.82 2016/01/24 05:02:23 mrg Exp $
+#      $NetBSD: mknative-gcc,v 1.83 2016/03/15 03:22:06 mrg Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of gcc.
 #
-# This version is for GCC 4.8.
+# This version is for GCC 5.3
 
 # initialise
 
@@ -24,9 +24,8 @@
 
 . $_TOP/tools/gcc/mknative.common
 
-# default to GCC 4.1 for now
-_OUTDIR="$_TOP/gnu"
-_OUTDIRBASE="gnu"
+_OUTDIR="$_TOP/external/gpl3/gcc"
+_OUTDIRBASE="external/gpl3/gcc"
 
 sanitise_includes () {
        sed \
@@ -275,7 +274,7 @@
 get_gcc_bootstrap () {
        _subdir="$1"
        mkdir -p $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH
-       for f in auto-host tm config; do
+       for f in auto-host tm config insn-modes; do
                write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gcc/$f.h
        done
 }
@@ -396,8 +395,6 @@
 # .mk and .h files for libgcc bootstrap (from host build)
 
 libgcc*-bootstrap)
-       _OUTDIR="$_TOP/external/gpl3/gcc"
-       _OUTDIRBASE="external/gpl3/gcc"
        get_libgcc gcc
        get_libgcov gcc $_PLATFORM/libgcc/Makefile
        get_crtstuff crtstuff
@@ -406,15 +403,11 @@
        ;;
 
 libstdc++-bootstrap)
-       _OUTDIR="$_TOP/external/gpl3/gcc"
-       _OUTDIRBASE="external/gpl3/gcc"
        get_libstdcxx_v3 libstdc++-v3 gcc
        exit 0
        ;;
 
 gcc*)
-       _OUTDIR="$_TOP/external/gpl3/gcc"
-       _OUTDIRBASE="external/gpl3/gcc"
        get_gcc gcc
        get_libgcc gcc
        get_libgcov gcc $_PLATFORM/libgcc/Makefile



Home | Main Index | Thread Index | Old Index