Module Name:    src
Committed By:   mrg
Date:           Tue Mar 22 05:08:38 UTC 2016

Modified Files:
        src/external/gpl3/gcc/usr.bin/backend: Makefile
        src/external/gpl3/gcc/usr.bin/cc1: Makefile

Log Message:
XXXGCC5: add symlinks for SH .cc files.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/external/gpl3/gcc/usr.bin/backend/Makefile
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/usr.bin/cc1/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/usr.bin/backend/Makefile
diff -u src/external/gpl3/gcc/usr.bin/backend/Makefile:1.28 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.29
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.28	Wed Mar 16 10:56:20 2016
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Mar 22 05:08:38 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.28 2016/03/16 10:56:20 mrg Exp $
+#	$NetBSD: Makefile,v 1.29 2016/03/22 05:08:38 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -18,10 +18,18 @@ CPPFLAGS.cppdefault.c+=	-DPREFIX=\"/usr\
 
 HOSTPROG_CXX=	1
 
+.include <bsd.own.mk>
+
 # XXX ${G_OBJS:.o=.c} is invalid in GCC 5.3, but work around for now
 BUILDSYMLINKS+=	${GNUHOSTDIST}/gcc/wide-int-print.cc wide-int-print.c
 BUILDSYMLINKS+=	${GNUHOSTDIST}/gcc/wide-int.cc wide-int.c
 
+.if ${MACHINE_CPU} == "sh3"
+BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh-mem.cc sh-mem.c
+BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh_treg_combine.cc sh_treg_combine.c
+BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh_optimize_sett_clrt.cc sh_optimize_sett_clrt.c
+.endif
+
 .include <bsd.lib.mk>
 
 # Force using C++ for this

Index: src/external/gpl3/gcc/usr.bin/cc1/Makefile
diff -u src/external/gpl3/gcc/usr.bin/cc1/Makefile:1.10 src/external/gpl3/gcc/usr.bin/cc1/Makefile:1.11
--- src/external/gpl3/gcc/usr.bin/cc1/Makefile:1.10	Fri Mar 18 17:52:30 2016
+++ src/external/gpl3/gcc/usr.bin/cc1/Makefile	Tue Mar 22 05:08:38 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.10 2016/03/18 17:52:30 christos Exp $
+#	$NetBSD: Makefile,v 1.11 2016/03/22 05:08:38 mrg Exp $
 
 PROG=		cc1
 SRCS=		${G_C_OBJS:S,c-family/,,:S,c/,,:Nlibcpp.a:.o=.c} main.c ${PROG}-checksum.c
@@ -47,6 +47,10 @@ COPTS.c-typeck.c=	-Wno-stack-protector
 
 CPPFLAGS.default-c.c+=	-I${BACKENDOBJ}
 
+.if ${MACHINE_CPU} == "sh3"
+BUILDSYMLINKS+= ${GNUHOSTDIST}/gcc/config/sh/sh-c.cc sh-c.c
+.endif
+
 LDADD+=	${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
 DPADD+=	${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
 

Reply via email to