Source-Changes-HG archive

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

[src/trunk]: src build new GCC 10 lto-dump(1) tool.



details:   https://anonhg.NetBSD.org/src/rev/7584932faa2c
branches:  trunk
changeset: 982674:7584932faa2c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Apr 23 01:56:14 2021 +0000

description:
build new GCC 10 lto-dump(1) tool.

diffstat:

 distrib/sets/lists/comp/mi                   |   6 ++++-
 external/gpl3/gcc/usr.bin/Makefile           |   4 +-
 external/gpl3/gcc/usr.bin/Makefile.backend   |   4 ++-
 external/gpl3/gcc/usr.bin/gcov-dump/Makefile |   4 +--
 external/gpl3/gcc/usr.bin/lto-dump/Makefile  |  35 ++++++++++++++++++++++++++++
 5 files changed, 46 insertions(+), 7 deletions(-)

diffs (134 lines):

diff -r fe4b55964995 -r 7584932faa2c distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Fri Apr 23 01:53:55 2021 +0000
+++ b/distrib/sets/lists/comp/mi        Fri Apr 23 01:56:14 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.2381 2021/04/23 01:53:55 mrg Exp $
+#      $NetBSD: mi,v 1.2382 2021/04/23 01:56:14 mrg Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.comp                           comp-sys-root
@@ -55,6 +55,7 @@
 ./usr/bin/llvm-symbolizer                      comp-c-bin              llvm
 ./usr/bin/llvm-tblgen                          comp-c-bin              llvm
 ./usr/bin/lorder                               comp-util-bin
+./usr/bin/lto-dump                             comp-c-bin              gcccmds,gcc=10
 ./usr/bin/luac                                 comp-util-bin
 ./usr/bin/menuc                                        comp-c-bin
 ./usr/bin/mkstr                                        comp-c-bin
@@ -4386,6 +4387,7 @@
 ./usr/share/man/cat1/lexdoc.0                  comp-obsolete           obsolete
 ./usr/share/man/cat1/lint.0                    comp-c-catman           .cat
 ./usr/share/man/cat1/lorder.0                  comp-util-catman        .cat
+./usr/share/man/cat1/lto-dump.0                        comp-c-catman           gcccmds,.cat,gcc=10
 ./usr/share/man/cat1/luac.0                    comp-util-catman        .cat
 ./usr/share/man/cat1/menuc.0                   comp-c-catman           .cat
 ./usr/share/man/cat1/mkstr.0                   comp-c-catman           .cat
@@ -12726,6 +12728,7 @@
 ./usr/share/man/html1/lex.html                 comp-c-htmlman          html
 ./usr/share/man/html1/lint.html                        comp-c-htmlman          html
 ./usr/share/man/html1/lorder.html              comp-util-htmlman       html
+./usr/share/man/html1/lto-dump.html            comp-c-htmlman          gcccmds,html,gcc=10
 ./usr/share/man/html1/luac.html                        comp-util-htmlman       html
 ./usr/share/man/html1/menuc.html               comp-c-htmlman          html
 ./usr/share/man/html1/mkstr.html               comp-c-htmlman          html
@@ -20855,6 +20858,7 @@
 ./usr/share/man/man1/lex.1                     comp-c-man              .man
 ./usr/share/man/man1/lint.1                    comp-c-man              .man
 ./usr/share/man/man1/lorder.1                  comp-util-man           .man
+./usr/share/man/man1/lto-dump.1                        comp-c-man              gcccmds,.man,gcc=10
 ./usr/share/man/man1/luac.1                    comp-util-man           .man
 ./usr/share/man/man1/menuc.1                   comp-c-man              .man
 ./usr/share/man/man1/mkstr.1                   comp-c-man              .man
diff -r fe4b55964995 -r 7584932faa2c external/gpl3/gcc/usr.bin/Makefile
--- a/external/gpl3/gcc/usr.bin/Makefile        Fri Apr 23 01:53:55 2021 +0000
+++ b/external/gpl3/gcc/usr.bin/Makefile        Fri Apr 23 01:56:14 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2019/01/18 17:31:55 christos Exp $
+#      $NetBSD: Makefile,v 1.12 2021/04/23 01:56:14 mrg Exp $
 
 NOOBJ=# defined
 
@@ -18,7 +18,7 @@
                common common-target .WAIT \
                libcpp libdecnumber .WAIT \
                gcov gcov-dump cc1 cc1obj cc1plus cpp g++ gcc \
-               lto1 lto-wrapper \
+               lto1 lto-wrapper lto-dump \
                include
 
 .endif
diff -r fe4b55964995 -r 7584932faa2c external/gpl3/gcc/usr.bin/Makefile.backend
--- a/external/gpl3/gcc/usr.bin/Makefile.backend        Fri Apr 23 01:53:55 2021 +0000
+++ b/external/gpl3/gcc/usr.bin/Makefile.backend        Fri Apr 23 01:56:14 2021 +0000
@@ -1,11 +1,13 @@
-#      $NetBSD: Makefile.backend,v 1.9 2020/09/05 14:24:25 mrg Exp $
+#      $NetBSD: Makefile.backend,v 1.10 2021/04/23 01:56:14 mrg Exp $
 
 .ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_BACKEND_
 _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_BACKEND_=1
 
+.if ${PROG} != "lto-dump"
 NOMAN=         # defined
 NOCTF=         # defined
 BINDIR=                /usr/libexec
+.endif
 
 CPPFLAGS+=     -I${GCCARCH} -I${BACKENDOBJ} \
                ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
diff -r fe4b55964995 -r 7584932faa2c external/gpl3/gcc/usr.bin/gcov-dump/Makefile
--- a/external/gpl3/gcc/usr.bin/gcov-dump/Makefile      Fri Apr 23 01:53:55 2021 +0000
+++ b/external/gpl3/gcc/usr.bin/gcov-dump/Makefile      Fri Apr 23 01:56:14 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2019/02/01 10:34:19 mrg Exp $
+#      $NetBSD: Makefile,v 1.4 2021/04/23 01:56:14 mrg Exp $
 
 .include <bsd.init.mk>
 
@@ -9,8 +9,6 @@
 
 BINDIR=                /usr/bin
 
-MAN=           gcov-dump.1
-
 .include "../Makefile.common"
 .include "../Makefile.libcpp"
 .include "../Makefile.backtrace"
diff -r fe4b55964995 -r 7584932faa2c external/gpl3/gcc/usr.bin/lto-dump/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/usr.bin/lto-dump/Makefile       Fri Apr 23 01:56:14 2021 +0000
@@ -0,0 +1,35 @@
+#      $NetBSD: Makefile,v 1.1 2021/04/23 01:56:14 mrg Exp $
+
+PROG=          lto-dump
+# XXX pullout from LTO_DUMP_OBJS
+SRCS=          lto-lang.c \
+               lto-object.c \
+               attribs.c \
+               lto-partition.c \
+               lto-symtab.c \
+               lto-dump.c \
+               lto-common.c \
+               main.c
+
+BINDIR=                /usr/bin
+
+CPPFLAGS+=     -DPREFIX=\"/usr\"
+
+COPTS.lto-lang.c+=     -Wno-stack-protector
+COPTS.lto-common.c+=   -Wno-stack-protector
+
+.include "../Makefile.backend"
+.include "../Makefile.target-defines"
+.include "../Makefile.libcpp"
+.include "../Makefile.backtrace"
+.include "../Makefile.libdecnumber"
+
+.if ${MACHINE_ARCH} == "vax"
+COPTS.lto-lang.c+=-O0
+COPTS.lto-symtab.c+=-O0
+.endif
+
+LDADD+=        ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
+DPADD+=        ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
+
+.PATH: ${DIST}/gcc/lto ${DIST}/gcc ${DIST}/gcc/doc



Home | Main Index | Thread Index | Old Index