Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gcc/usr.bin make sure that files containing ve...



details:   https://anonhg.NetBSD.org/src/rev/52c6b1467995
branches:  trunk
changeset: 329645:52c6b1467995
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat May 31 22:55:16 2014 +0000

description:
make sure that files containing version numbers are rebuilt when
the version actually changes.

diffstat:

 external/gpl3/gcc/usr.bin/Makefile.gcc-tool      |  4 +++-
 external/gpl3/gcc/usr.bin/Makefile.inc           |  3 ++-
 external/gpl3/gcc/usr.bin/cc1/Makefile           |  3 ++-
 external/gpl3/gcc/usr.bin/cc1obj/Makefile        |  3 ++-
 external/gpl3/gcc/usr.bin/cc1plus/Makefile       |  3 ++-
 external/gpl3/gcc/usr.bin/common-target/Makefile |  4 +++-
 external/gpl3/gcc/usr.bin/common/Makefile        |  4 +++-
 external/gpl3/gcc/usr.bin/cpp/Makefile           |  4 +++-
 external/gpl3/gcc/usr.bin/frontend/Makefile      |  4 +++-
 external/gpl3/gcc/usr.bin/g++/Makefile           |  4 +++-
 external/gpl3/gcc/usr.bin/gcc/Makefile           |  4 +++-
 11 files changed, 29 insertions(+), 11 deletions(-)

diffs (194 lines):

diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/Makefile.gcc-tool
--- a/external/gpl3/gcc/usr.bin/Makefile.gcc-tool       Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/Makefile.gcc-tool       Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.gcc-tool,v 1.1 2014/03/01 10:00:49 mrg Exp $
+#      $NetBSD: Makefile.gcc-tool,v 1.2 2014/05/31 22:55:16 mrg Exp $
 
 PROG=  gcc-${GCC_TOOL}
 SRCS=  gcc-ar.c file-find.c
@@ -15,6 +15,8 @@
 # Skip these because we don't have them in paths.
 #      -DDEFAULT_TARGET_VERSION=\"${G_version}\"
 #      -DDEFAULT_TARGET_MACHINE=\"{GNU_MACHINE_ARCH}\"
+#
+# ${SRCS}: ${GCCARCH}/defs.mk
 
 CPPFLAGS+=     -I${GCCARCH} -I${BACKENDOBJ} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
 
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/Makefile.inc
--- a/external/gpl3/gcc/usr.bin/Makefile.inc    Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/Makefile.inc    Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.22 2014/05/29 07:40:37 mrg Exp $
+#      $NetBSD: Makefile.inc,v 1.23 2014/05/31 22:55:16 mrg Exp $
 
 .ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_
 _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_=1
@@ -79,6 +79,7 @@
                -DBUGURL=$(G_BUGURL_s)
 
 CPPFLAGS.version.c+=   ${VER_CPPFLAGS}
+version.c: ${GCCARCH}/defs.mk ${TOP}/tools/gcc/gcc-version.mk
 
 .include "${GCCARCH}/defs.mk"
 
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/cc1/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1/Makefile    Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1/Makefile    Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2014/03/22 19:52:21 tron Exp $
+#      $NetBSD: Makefile,v 1.9 2014/05/31 22:55:17 mrg Exp $
 
 PROG=          cc1
 SRCS=          ${G_C_OBJS:S,c-family/,,:S,c/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@@ -30,6 +30,7 @@
 
 # VER_CPPFLAGS from Makefile.inc
 CPPFLAGS.c-cppbuiltin.c=       ${VER_CPPFLAGS}
+c-cppbuiltin.c: ${GCCARCH}/defs.mk
 
 COPTS.c-ada-spec.c=    -Wno-stack-protector
 COPTS.c-aux-info.c=    -Wno-stack-protector
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/cc1obj/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1obj/Makefile Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1obj/Makefile Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2014/03/22 17:57:47 tron Exp $
+#      $NetBSD: Makefile,v 1.8 2014/05/31 22:55:17 mrg Exp $
 
 MYOBJS=                ${G_OBJC_OBJS} ${G_C_AND_OBJC_OBJS} 
 PROG=          cc1obj
@@ -33,6 +33,7 @@
 
 # VER_CPPFLAGS from Makefile.inc
 CPPFLAGS.c-cppbuiltin.c=       ${VER_CPPFLAGS}
+c-cppbuiltin.c: ${GCCARCH}/defs.mk
 
 COPTS.c-ada-spec.c+=                   -Wno-stack-protector
 COPTS.c-aux-info.c+=                   -Wno-stack-protector
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/cc1plus/Makefile
--- a/external/gpl3/gcc/usr.bin/cc1plus/Makefile        Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/cc1plus/Makefile        Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2014/04/04 01:19:57 christos Exp $
+#      $NetBSD: Makefile,v 1.9 2014/05/31 22:55:17 mrg Exp $
 
 PROG=          cc1plus
 SRCS=          ${G_CXX_OBJS:S,c-family/,,:S,cp/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@@ -33,6 +33,7 @@
 
 ## VER_CPPFLAGS from Makefile.inc
 #CPPFLAGS.c-cppbuiltin.c=      ${VER_CPPFLAGS}
+#c-cppbuiltin.c: ${GCCARCH}/defs.mk
 
 # YUCK.  but see timevar.h:POP_TIMEVAR_AND_RETURN
 CFLAGS+=       -Wno-error # not good enough: -Wno-return-type
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/common-target/Makefile
--- a/external/gpl3/gcc/usr.bin/common-target/Makefile  Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/common-target/Makefile  Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2014/03/15 23:12:58 mrg Exp $
+#      $NetBSD: Makefile,v 1.4 2014/05/31 22:55:17 mrg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -27,6 +27,8 @@
 .include "../Makefile.options"
 .include "../../Makefile.hooks"
 
+${SRCS}: ${GCCARCH}/defs.mk
+
 ${G_common_out_file:T:R}.o:  common/common-target-hooks-def.h
 
 DPSRCS+=       options.h
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/common/Makefile
--- a/external/gpl3/gcc/usr.bin/common/Makefile Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/common/Makefile Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2014/03/05 21:37:02 tron Exp $
+#      $NetBSD: Makefile,v 1.3 2014/05/31 22:55:17 mrg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -25,6 +25,8 @@
 COPTS.diagnostic.c=    -Wno-stack-protector
 COPTS.intl.c=          -Wno-stack-protector
 
+${SRCS}: ${GCCARCH}/defs.mk
+
 .include <bsd.lib.mk>
 
 # Force using C++ for this
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/cpp/Makefile
--- a/external/gpl3/gcc/usr.bin/cpp/Makefile    Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/cpp/Makefile    Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2014/03/22 17:57:48 tron Exp $
+#      $NetBSD: Makefile,v 1.8 2014/05/31 22:55:17 mrg Exp $
 
 PROG=          cpp
 SRCS=          cppspec.c ${G_GCC_OBJS:.o=.c}
@@ -24,6 +24,8 @@
 
 .include "../Makefile.frontend"
 
+${SRCS}: ${GCCARCH}/defs.mk
+
 .include <bsd.info.mk>
 
 COPTS.gcc.c=   -Wno-stack-protector
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/frontend/Makefile
--- a/external/gpl3/gcc/usr.bin/frontend/Makefile       Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/frontend/Makefile       Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2014/03/01 10:00:49 mrg Exp $
+#      $NetBSD: Makefile,v 1.8 2014/05/31 22:55:17 mrg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -31,6 +31,8 @@
 
 DPSRCS+=       specs.h
 
+${SRCS}: ${GCCARCH}/defs.mk
+
 MKPIC:=                no
 MKPICLIB:=     no
 
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/g++/Makefile
--- a/external/gpl3/gcc/usr.bin/g++/Makefile    Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/g++/Makefile    Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2014/03/22 17:57:48 tron Exp $
+#      $NetBSD: Makefile,v 1.5 2014/05/31 22:55:17 mrg Exp $
 
 PROG=          gplusplus
 PROGNAME=      g++
@@ -20,6 +20,8 @@
 
 .include "../Makefile.frontend"
 
+${SRCS}: ${GCCARCH}/defs.mk
+
 COPTS.gcc.c=   -Wno-stack-protector
 
 .PATH: ${DIST}/gcc/cp ${DIST}/gcc ${DIST}/gcc/cp
diff -r 91622c361a5e -r 52c6b1467995 external/gpl3/gcc/usr.bin/gcc/Makefile
--- a/external/gpl3/gcc/usr.bin/gcc/Makefile    Sat May 31 22:42:11 2014 +0000
+++ b/external/gpl3/gcc/usr.bin/gcc/Makefile    Sat May 31 22:55:16 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2014/03/22 17:57:48 tron Exp $
+#      $NetBSD: Makefile,v 1.5 2014/05/31 22:55:17 mrg Exp $
 
 PROG=          gcc
 SRCS=          gccspec.c ${G_GCC_OBJS:.o=.c}
@@ -24,6 +24,8 @@
 
 .include "../Makefile.frontend"
 
+${SRCS}: ${GCCARCH}/defs.mk
+
 .include <bsd.info.mk>
 
 COPTS.gcc.c=   -Wno-stack-protector



Home | Main Index | Thread Index | Old Index