CVS commit: src/external/gpl3/gcc/usr.bin/backend

2021-04-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Apr 13 06:30:36 UTC 2021

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

Log Message:
more -O0 for vax


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/external/gpl3/gcc/usr.bin/backend/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.64 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.65
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.64	Mon Apr 12 00:05:56 2021
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Apr 13 06:30:36 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.64 2021/04/12 00:05:56 mrg Exp $
+#	$NetBSD: Makefile,v 1.65 2021/04/13 06:30:36 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -552,6 +552,7 @@ COPTS.internal-fn.c+=-O0
 COPTS.lto-streamer-out.c+=-O0
 COPTS.omp-low.c+=-O0
 COPTS.predict.c+=-O0
+COPTS.range-op.cc+=-O0
 COPTS.recog.c+=-O0
 COPTS.sanopt.c+=-O0
 COPTS.stmt.c+=-O0
@@ -591,8 +592,8 @@ COPTS.ubsan.c+=-O0
 COPTS.varasm.c+=-O0
 COPTS.vr-values.c+=-O0
 COPTS.web.c+=-O0
-COPTS.wide-int.cc+=-O0
 COPTS.wide-int-range.cc+=-O0
+COPTS.wide-int.cc+=-O0
 .else
 COPTS.tree.c=	${${ACTIVE_CC} == "clang" :? -O0 :}
 .endif



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2020-09-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Sep  6 10:50:53 UTC 2020

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

Log Message:
build-hash-table.lo and build-vec.lo depend upon $HASH_TABLE_H not $GGC_H


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/external/gpl3/gcc/usr.bin/backend/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.61 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.62
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.61	Sat Sep  5 14:24:26 2020
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Sun Sep  6 10:50:53 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.61 2020/09/05 14:24:26 mrg Exp $
+#	$NetBSD: Makefile,v 1.62 2020/09/06 10:50:53 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -298,14 +298,14 @@ build-ggc-none.c: ggc-none.c \
 build-ggc-none.lo: ${HH}
 CLEANFILES+=	build-ggc-none.c
 
-build-hash-table.c: hash-table.c hash-table.h ${G_GGC_H}
+build-hash-table.c: hash-table.c hash-table.h ${G_HASH_TABLE_H} ${HH}
 	${_MKTARGET_CREATE}
 	rm -f build-hash-table.c
 	cat ${GNUHOSTDIST}/gcc/hash-table.c >${.TARGET}
 build-hash-table.lo: ${HH_NORTL}
 CLEANFILES+=	build-hash-table.c
 
-build-vec.c: vec.c vec.h ${G_GGC_H}
+build-vec.c: vec.c vec.h ${G_HASH_TABLE_H} ${HH}
 	${_MKTARGET_CREATE}
 	rm -f build-vec.c
 	cat ${GNUHOSTDIST}/gcc/vec.c >${.TARGET}



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2020-06-12 Thread Santhosh Raju
Module Name:src
Committed By:   fox
Date:   Fri Jun 12 14:37:51 UTC 2020

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

Log Message:
external/gpl3/gcc: Suppress -Werror=maybe-uninitialized

Seems like false positive since the ASM_GENERATE_INTERNAL_LABEL macro
stores the value into prev_label, so it is alright for prev_label to
be uninitialized.

Error was reported when build.sh was run with MKSANITIZER=yes flag.

Reviewed by: kamil@


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/external/gpl3/gcc/usr.bin/backend/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.57 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.58
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.57	Tue Oct 29 02:49:05 2019
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Fri Jun 12 14:37:51 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.57 2019/10/29 02:49:05 christos Exp $
+#	$NetBSD: Makefile,v 1.58 2020/06/12 14:37:51 fox Exp $
 
 LIBISPRIVATE=	yes
 
@@ -595,6 +595,8 @@ COPTS.tree.c=	${${ACTIVE_CC} == "clang" 
 
 CFLAGS+=	-Wno-stack-protector
 
+COPTS.dwarf2out.c+=-Wno-error=maybe-uninitialized
+
 .if ${GCC_MACHINE_ARCH} == "m68000" || ${GCC_MACHINE_ARCH} == "m68k" || \
 	${GCC_MACHINE_ARCH} == "coldfire"
 COPTS.tree-loop-distribution.c+=-O2



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2019-02-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Feb  7 05:28:38 UTC 2019

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

Log Message:
apply -O0 to a few more files for vax.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/external/gpl3/gcc/usr.bin/backend/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.52 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.53
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.52	Mon Feb  4 08:15:51 2019
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Thu Feb  7 05:28:38 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.52 2019/02/04 08:15:51 mrg Exp $
+#	$NetBSD: Makefile,v 1.53 2019/02/07 05:28:38 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -526,7 +526,9 @@ COPTS.insn-recog.c+=-Wno-error
 .if ${GCC_MACHINE_ARCH} == "vax"
 CPPFLAGS+=-I${.CURDIR}/../../lib/libgcc/libgcov/arch/${GCC_MACHINE_ARCH}
 COPTS.builtins.c+=-O0
+COPTS.calls.c+=-O0
 COPTS.convert.c+=-O0
+COPTS.data-streamer-out.c+=-O0
 COPTS.dwarf2out.c+=-O0
 COPTS.dse.c+=-O0	# XXX port-vax/51967
 COPTS.expmed.c+=-O0
@@ -548,10 +550,12 @@ COPTS.targhooks.c+=-O0
 COPTS.tree-affine.c+=-O0
 COPTS.tree-cfg.c+=-O0
 COPTS.tree-eh.c+=-O0
+COPTS.tree-if-conv.c+=-O0
 COPTS.tree-object-size.c+=-O0
 COPTS.tree-parloops.c+=-O0
 COPTS.tree-predcom.c+=-O0
 COPTS.tree-pretty-print.c+=-O0
+COPTS.tree-ssa.c+=-O0
 COPTS.tree-ssa-alias.c+=-O0
 COPTS.tree-ssa-ccp.c+=-O0
 COPTS.tree-ssa-forwprop.c+=-O0
@@ -564,12 +568,14 @@ COPTS.tree-ssa-reassoc.c+=-O0
 COPTS.tree-ssa-uninit.c+=-O0
 COPTS.tree-switch-conversion.c+=-O0
 COPTS.tree-vect-data-refs.c+=-O0
+COPTS.tree-vect-loop.c+=-O0
 COPTS.tree-vect-loop-manip.c+=-O0
 COPTS.tree-vect-patterns.c+=-O0
 COPTS.tree-vect-stmts.c+=-O0
 COPTS.tree-vrp.c+=-O0
 COPTS.tree.c+=-O0
 COPTS.ubsan.c+=-O0
+COPTS.web.c+=-O0
 COPTS.varasm.c+=-O0
 COPTS.wide-int.cc+=-O0
 .else



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2019-02-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Feb  4 08:15:51 UTC 2019

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

Log Message:
ira-color.c needs -Wno-error=int-in-bool-context for now.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/external/gpl3/gcc/usr.bin/backend/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.51 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.52
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.51	Tue Nov  6 06:17:29 2018
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Mon Feb  4 08:15:51 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.51 2018/11/06 06:17:29 mrg Exp $
+#	$NetBSD: Makefile,v 1.52 2019/02/04 08:15:51 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -507,6 +507,8 @@ ${G_out_file:T:.c=.o}: insn-target-def.h
 # XXX make all hooks generated for now.
 final.o: target-hooks-def.h c-family/c-target-hooks-def.h common/common-target-hooks-def.h
 
+COPTS.ira-color.c+= -Wno-error=int-in-bool-context
+
 .if ${MACHINE_CPU} == "arm"
 # XXX insn-recog.c:10304:7: error: this decimal constant is unsigned only in ISO C90 [-Werror]
 COPTS.insn-recog.c+=-Wno-error



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2018-07-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jul 15 00:59:50 UTC 2018

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

Log Message:
Aarch64 specific generated files.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/external/gpl3/gcc/usr.bin/backend/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.49 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.50
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.49	Thu Apr 19 18:01:27 2018
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Sat Jul 14 20:59:49 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.49 2018/04/19 22:01:27 mrg Exp $
+#	$NetBSD: Makefile,v 1.50 2018/07/15 00:59:49 christos Exp $
 
 LIBISPRIVATE=	yes
 
@@ -448,9 +448,16 @@ CASECFNDEPS=	aarch64-builtins.c arm-buil
 		gimple-ssa-backprop.c
 ${CASECFNDEPS}: case-cfn-macros.h
 
+aarch64-builtin-iterators.h: ${DIST}/gcc/config/aarch64/geniterators.sh \
+${DIST}/gcc/config/aarch64/iterators.md
+	$(HOST_SH) ${.ALLSRC} > ${.TARGET}
+
+CLEANFILES+=	aarch-builtin-iterators.h
+
 #
 # Required hard-coded dependancies.
 #
+aarch64-builtins.o: aarch64-builtin-iterators.h
 tm.h: insn-constants.h
 genextract.lo: insn-config.h
 gencondmd.lo: tm_p.h tm-constrs.h
@@ -583,3 +590,6 @@ CFLAGS+= -fno-exceptions -fno-rtti -fasy
 
 .PATH: ${DIST}/gcc ${DIST}/libiberty ${GCCARCH} ${G_out_file:H} ${DIST}/include
 .PATH: ${DIST}/gcc/config
+.if ${MACHINE_ARCH} == "aarch64"
+.PATH: ${DIST}/gcc/config/arm
+.endif



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2018-04-19 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Apr 19 22:01:27 UTC 2018

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

Log Message:
add missing cgraphunit.c dependancy on pass_manager.h.  should fix report
from thorpej on current-users about missing pass-instances.def.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/external/gpl3/gcc/usr.bin/backend/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.48 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.49
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.48	Fri Apr 13 01:14:19 2018
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Thu Apr 19 22:01:27 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.48 2018/04/13 01:14:19 mrg Exp $
+#	$NetBSD: Makefile,v 1.49 2018/04/19 22:01:27 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -475,8 +475,8 @@ read-md.d read-md.o read-md.lo: auto-bui
 hash-table.d hash-table.o hash-table.lo: auto-build.h gtype-desc.h
 gencfn-macros.d gencfn-macros.o gencfn-macros.lo: gtype-desc.h
 pass_manager.h passes.c: pass-instances.def
-context.d coverage.d lto-cgraph.d passes.d statistics.d toplev.d: pass_manager.h
-context.o coverage.o lto-cgraph.o passes.o statistics.o toplev.o: pass_manager.h
+context.d coverage.d lto-cgraph.d passes.d statistics.d toplev.d cgraphunit.d: pass_manager.h
+context.o coverage.o lto-cgraph.o passes.o statistics.o toplev.o cgraphunit.o: pass_manager.h
 insn-opinit.o insn-opinit.d: insn-flags.h
 .for _f in insn-attrtab insn-automata insn-dfatab insn-latencytab insn-output
 ${_f}.o ${_f}.d: insn-attr-common.h insn-attr.h



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2018-04-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Apr 13 01:14:19 UTC 2018

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

Log Message:
fix some more missing depends issues.  remove various wrong/old depends.

fixes issues i was able to trigger manually by building specific files.

more for PR#53137.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/external/gpl3/gcc/usr.bin/backend/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.47 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.48
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.47	Thu Apr 12 20:44:16 2018
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Fri Apr 13 01:14:19 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.47 2018/04/12 20:44:16 mrg Exp $
+#	$NetBSD: Makefile,v 1.48 2018/04/13 01:14:19 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -194,7 +194,8 @@ tm_p.h: Makefile tm-preds.h
 	HEADERS="$(G_tm_p_include_list)" DEFINES="" \
 	${HOST_SH} ${GNUHOSTDIST}/gcc/mkconfig.sh ${.TARGET}
 
-${G_OBJS} ${G_OBJS:.o=.d}:	tm_p.h		# XXX crude
+# XXX crude
+${G_OBJS} ${G_OBJS:.o=.d}:	tm.h tm_p.h insn-opinit.h
 
 .include "../Makefile.options"
 
@@ -394,9 +395,6 @@ tree-check.h: gencheck
 	./gencheck >${.TARGET}
 CLEANFILES+=	tree-check.h
 
-# Some generators output is not the normal name.
-BUILDSYMLINKS+= insn-check.h tree-check.h
-
 # genattrtab has three output files
 insn-dfatab.c insn-latencytab.c: insn-attrtab.c
 	cp -p ${.TARGET}.tmp ${.TARGET}
@@ -417,8 +415,6 @@ insn-opinit.c: genopinit ${G_md_file} in
 	mv ${.TARGET}.tmp ${.TARGET}
 CLEANFILES+=	insn-opinit.h insn-opinit.c
 
-DPSRCS+= insn-opinit.h
-
 LDFLAGS.genautomata+=	-lm
 
 # gencondmd outputs a special .md file
@@ -455,32 +451,32 @@ ${CASECFNDEPS}: case-cfn-macros.h
 #
 # Required hard-coded dependancies.
 #
+tm.h: insn-constants.h
 genextract.lo: insn-config.h
 gencondmd.lo: tm_p.h tm-constrs.h
-read-rtl.lo gencodes.lo genattrtab.lo genautomata.lo: insn-constants.h gtype-desc.h
-genattr-common.lo gensupport.lo genconditions.lo gentarget-def.lo: insn-constants.h
-genattr.lo genflags.lo genemit.lo genconfig.lo gencheck.lo: insn-constants.h gtype-desc.h
-genopinit.lo genrecog.lo genpreds.lo genoutput.lo genpeep.lo: insn-constants.h 
+read-rtl.lo gencodes.lo genattrtab.lo genautomata.lo: tm.h gtype-desc.h
+genattr-common.lo gensupport.lo genconditions.lo gentarget-def.lo: tm.h
+genattr.lo genflags.lo genemit.lo genconfig.lo gencheck.lo: gtype-desc.h tm.h
+genopinit.lo genrecog.lo genpreds.lo genoutput.lo genpeep.lo: tm.h
 build-ggc-none.lo: gtype-desc.h
 ggc-none.o: gtype-desc.h
-asan.d asan.o: insn-opinit.h
 insn-attrtab.o: insn-config.h
 insn-extract.o: insn-config.h
 toplev.d toplev.o: options.h
 coverage.d: gcov-iov.h
 gcov-io.h: gcov-iov.h
-alias.d alias.o: insn-constants.h tm_p.h
 cgraph.d cgraphunit.d cgraphunit.o: gcov-io.h
 vec.lo: gtype-desc.h
-gtype-desc.d gtype-desc.o: insn-constants.h
-insn-emit.d insn-emit.o: tm-constrs.h insn-opinit.h
+insn-emit.d insn-emit.o: tm-constrs.h
 insn-attr.h: insn-attr-common.h
 gcov-io.h: gcov-iov.h
 df-scan.d df-scan.o: target-hooks-def.h
 read-md.d read-md.o read-md.lo: auto-build.h
 hash-table.d hash-table.o hash-table.lo: auto-build.h gtype-desc.h
 gencfn-macros.d gencfn-macros.o gencfn-macros.lo: gtype-desc.h
-cgraphunit.d cgraphunit.o: pass-instances.def
+pass_manager.h passes.c: pass-instances.def
+context.d coverage.d lto-cgraph.d passes.d statistics.d toplev.d: pass_manager.h
+context.o coverage.o lto-cgraph.o passes.o statistics.o toplev.o: pass_manager.h
 insn-opinit.o insn-opinit.d: insn-flags.h
 .for _f in insn-attrtab insn-automata insn-dfatab insn-latencytab insn-output
 ${_f}.o ${_f}.d: insn-attr-common.h insn-attr.h
@@ -498,32 +494,25 @@ ${_f}.o ${_f}.d: insn-constants.h
 ${_f}.o ${_f}.d: gcov-io.h
 .endfor
 
+${G_out_file:T:.c=.o}: insn-target-def.h target-hooks-def.h tm-constrs.h
+
 # XXX make all hooks generated for now.
 final.o: target-hooks-def.h c-family/c-target-hooks-def.h common/common-target-hooks-def.h
 
-.if ${GCC_MACHINE_ARCH} == "alpha"
-alpha.d alpha.o: tm-constrs.h tm_p.h insn-opinit.h target-hooks-def.h
-alpha.d: pass-instances.def
-.endif
-
 .if ${MACHINE_CPU} == "arm"
-arm.d arm.o: insn-constants.h tm_p.h insn-opinit.h target-hooks-def.h
-arm-builtins.d arm-builtins.o: insn-opinit.h
 # XXX insn-recog.c:10304:7: error: this decimal constant is unsigned only in ISO C90 [-Werror]
 COPTS.insn-recog.c+=-Wno-error
 .endif
 
+.if ${GCC_MACHINE_ARCH} == "i386" || ${GCC_MACHINE_ARCH} == "x86_64"
+i386.d i386.o: pass_manager.h
+.endif
+
 .if ${MACHINE_CPU} == "mips"
 # XXX mips.md:3474:11: error: this decimal constant is unsigned only in ISO C90 [-Werror]
 COPTS.insn-recog.c+=-Wno-error
 .endif
 
-.if ${GCC_MACHINE_ARCH} == "i386" || ${GCC_MACHINE_ARCH} == "x86_64"
-i386.d i386.o

CVS commit: src/external/gpl3/gcc/usr.bin/backend

2018-04-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Apr 12 20:44:16 UTC 2018

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

Log Message:
fix the hard coded depends list for insn-*.  i pulled these out
of the generated .d files for a successful build.  i've tested
that at least one recent macppc build failure is fixed with this
change (namely, try building just insn-emit.o in this subdir),
but the pattern should fix anything else left in insn*.

this really should finally fix PR#53137.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/external/gpl3/gcc/usr.bin/backend/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.46 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.47
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.46	Thu Apr  5 05:38:59 2018
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Thu Apr 12 20:44:16 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.46 2018/04/05 05:38:59 mrg Exp $
+#	$NetBSD: Makefile,v 1.47 2018/04/12 20:44:16 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -463,7 +463,7 @@ genattr.lo genflags.lo genemit.lo gencon
 genopinit.lo genrecog.lo genpreds.lo genoutput.lo genpeep.lo: insn-constants.h 
 build-ggc-none.lo: gtype-desc.h
 ggc-none.o: gtype-desc.h
-
+asan.d asan.o: insn-opinit.h
 insn-attrtab.o: insn-config.h
 insn-extract.o: insn-config.h
 toplev.d toplev.o: options.h
@@ -473,17 +473,30 @@ alias.d alias.o: insn-constants.h tm_p.h
 cgraph.d cgraphunit.d cgraphunit.o: gcov-io.h
 vec.lo: gtype-desc.h
 gtype-desc.d gtype-desc.o: insn-constants.h
-insn-emit.d insn-emit.o: tm-constrs.h
+insn-emit.d insn-emit.o: tm-constrs.h insn-opinit.h
 insn-attr.h: insn-attr-common.h
-asan.d asan.o: insn-opinit.h
-data-streamer.d data-streamer-out.d coverage.d gcov-dump.d gcov-io.d gcov-iov.d gcov.d libgcov.d lto-cgraph.d mcf.d modulo-sched.d profile.d value-prof.d: gcov-io.h
-data-streamer.o data-streamer-out.o coverage.o gcov-dump.o gcov-io.o gcov-iov.o gcov.o libgcov.o lto-cgraph.o mcf.o modulo-sched.o profile.o value-prof.o: gcov-io.h
 gcov-io.h: gcov-iov.h
 df-scan.d df-scan.o: target-hooks-def.h
 read-md.d read-md.o read-md.lo: auto-build.h
 hash-table.d hash-table.o hash-table.lo: auto-build.h gtype-desc.h
 gencfn-macros.d gencfn-macros.o gencfn-macros.lo: gtype-desc.h
 cgraphunit.d cgraphunit.o: pass-instances.def
+insn-opinit.o insn-opinit.d: insn-flags.h
+.for _f in insn-attrtab insn-automata insn-dfatab insn-latencytab insn-output
+${_f}.o ${_f}.d: insn-attr-common.h insn-attr.h
+.endfor
+.for _f in insn-attrtab insn-automata insn-dfatab insn-emit insn-extract \
+	   insn-latencytab insn-opinit insn-output insn-peep insn-preds \
+	   insn-recog
+${_f}.o ${_f}.d: insn-codes.h insn-config.h insn-constants.h insn-flags.h
+.endfor
+.for _f in insn-enums insn-modes
+${_f}.o ${_f}.d: insn-constants.h
+.endfor
+.for _f in data-streamer data-streamer-out coverage gcov-dump gcov-io \
+	   gcov-iov gcov libgcov lto-cgraph mcf modulo-sched profile value-prof
+${_f}.o ${_f}.d: gcov-io.h
+.endfor
 
 # XXX make all hooks generated for now.
 final.o: target-hooks-def.h c-family/c-target-hooks-def.h common/common-target-hooks-def.h



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2018-04-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Apr  5 05:38:59 UTC 2018

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

Log Message:
pretty much everything depends upon insn-opinit.h via optabs-query.h
so set it in DPSRCS.  hopefully this fixes PR 53137.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/external/gpl3/gcc/usr.bin/backend/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.45 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.46
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.45	Mon Apr  2 22:35:26 2018
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Thu Apr  5 05:38:59 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.45 2018/04/02 22:35:26 mrg Exp $
+#	$NetBSD: Makefile,v 1.46 2018/04/05 05:38:59 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -417,6 +417,8 @@ insn-opinit.c: genopinit ${G_md_file} in
 	mv ${.TARGET}.tmp ${.TARGET}
 CLEANFILES+=	insn-opinit.h insn-opinit.c
 
+DPSRCS+= insn-opinit.h
+
 LDFLAGS.genautomata+=	-lm
 
 # gencondmd outputs a special .md file



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2018-04-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Apr  2 22:34:22 UTC 2018

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

Log Message:
handle programs that have 3 outputs in a saner fashion.
hopefully fixes PR 53137.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/external/gpl3/gcc/usr.bin/backend/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.43 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.44
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.43	Sun Feb 11 02:12:28 2018
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Mon Apr  2 22:34:22 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.43 2018/02/11 02:12:28 christos Exp $
+#	$NetBSD: Makefile,v 1.44 2018/04/02 22:34:22 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -398,16 +398,23 @@ CLEANFILES+=	tree-check.h
 BUILDSYMLINKS+= insn-check.h tree-check.h
 
 # genattrtab has three output files
-# XXX fix me
-insn-attrtab.c insn-dfatab.c insn-latencytab.c: genattrtab ${G_md_file} insn-conditions.md 
-	${_MKTARGET_CREATE}
-	./genattrtab ${G_md_file} insn-conditions.md -Ainsn-attrtab.c -Dinsn-dfatab.c -Linsn-latencytab.c
+insn-dfatab.c insn-latencytab.c: insn-attrtab.c
+	cp -p ${.TARGET}.tmp ${.TARGET}
+insn-attrtab.c: genattrtab ${G_md_file} insn-conditions.md 
+	${_MKTARGET_CREATE}
+	./genattrtab ${G_md_file} insn-conditions.md \
+		-A${.TARGET}.tmp -Dinsn-dfatab.c.tmp -Linsn-latencytab.c.tmp && \
+	mv ${.TARGET}.tmp ${.TARGET}
 CLEANFILES+=	insn-attrtab.c insn-dfatab.c insn-latencytab.c
 
 # genopinit has two output files
-insn-opinit.c insn-opinit.h: genopinit ${G_md_file} insn-conditions.md
-	${_MKTARGET_CREATE}
-	./genopinit ${G_md_file} insn-conditions.md -hinsn-opinit.h -cinsn-opinit.c
+insn-opinit.h: insn-opinit.c
+	cp -p ${.TARGET}.tmp ${.TARGET}
+insn-opinit.c: genopinit ${G_md_file} insn-conditions.md
+	${_MKTARGET_CREATE}
+	./genopinit ${G_md_file} insn-conditions.md \
+		-hinsn-opinit.h.tmp -c${.TARGET}.tmp && \
+	mv ${.TARGET}.tmp ${.TARGET}
 CLEANFILES+=	insn-opinit.h insn-opinit.c
 
 LDFLAGS.genautomata+=	-lm



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2018-02-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Feb  7 02:33:05 UTC 2018

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

Log Message:
make this actually work:
- use ${G_OBJS} directly, it avoids issues with .c vs .cc files.
- add a method to not rm -rf .ab for inspection.
- fix and add missing depends for many things.
- use -Wno-error for mips and arm insn-recog.c, due to eg:
insn-recog.c:10304:7: error: this decimal constant is unsigned only in ISO 
C90 [-Werror]
mips.md:3474:11: error: this decimal constant is unsigned only in ISO C90 
[-Werror]


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/gcc/usr.bin/backend/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.41 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.42
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.41	Sun Feb  4 10:16:07 2018
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Wed Feb  7 02:33:05 2018
@@ -1,10 +1,13 @@
-#	$NetBSD: Makefile,v 1.41 2018/02/04 10:16:07 mrg Exp $
+#	$NetBSD: Makefile,v 1.42 2018/02/07 02:33:05 mrg Exp $
 
 LIBISPRIVATE=	yes
 
 LIB=		backend
 
-SRCS=		${G_OBJS:.o=.c} ${G_out_file:T} regsub.c
+SRCS=		${G_OBJS} ${G_out_file:T} regsub.c
+
+# XXX: something misses these.
+CLEANDIRFILES+=	${G_OBJS:.o=.d}
 
 # Make sure we use the pre-generated C files
 .l.c:
@@ -29,16 +32,6 @@ HOSTPROG_CXX=	1
 
 HOST_LIBIBERTYOBJ!=	cd ${.CURDIR}/../host-libiberty && ${PRINTOBJDIR}
 
-# 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 
 
 # Force using C++ for this
@@ -211,6 +204,10 @@ ${G_OBJS} ${G_OBJS:.o=.d}:	tm_p.h		# XXX
 CLEANFILES+=	auto-build.h
 HOST_CFLAGS+= -I${.OBJDIR}
 HOST_CXXFLAGS+= -I${.OBJDIR}
+
+# Set this to "true" to leave .ab around
+HOST_AB_CLEAN?=	rm -rf .ab
+
 auto-build.h: gmp.h Makefile
 	${_MKTARGET_CREATE}
 	rm -rf .ab && \
@@ -228,8 +225,7 @@ auto-build.h: gmp.h Makefile
 			--host=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \
 			--target=${MACHINE_GNU_PLATFORM} && \
 		mv auto-host.h ../auto-build.h) && \
-	true
-	#rm -rf .ab
+	${HOST_AB_CLEAN}
 
 pass-instances.def: passes.def gen-pass-instances.awk
 	${_MKTARGET_CREATE}
@@ -243,12 +239,12 @@ CLEANFILES+=	pass-instances.def
 #
 
 build-rtl.c: rtl.c \
-  ${G_RTL_H} real.h ${G_GCC_H} ${G_GGC_H} errors.h
+  ${G_RTL_H} real.h ${G_GCC_H} ${G_RTL_BASE_H} ${G_GGC_H} errors.h
 	${_MKTARGET_CREATE}
 	rm -f build-rtl.c
 	${TOOL_SED} -e 's/${.TARGET}
-build-rtl.lo: ${HH}
+build-rtl.lo: ${HH} insn-constants.h
 CLEANFILES+=	build-rtl.c
 
 build-print-rtl.c: print-rtl.c \
@@ -310,6 +306,8 @@ build-vec.c: vec.c vec.h ${G_GGC_H}
 build-vec.lo: ${HH_NORTL}
 CLEANFILES+=	build-vec.c
 
+build-genattrtab.o: ${G_GGC_H}
+
 #
 # The normal insn-foo generators
 #
@@ -333,7 +331,7 @@ GENPROG_RTL_DEPENDS=	${G_BUILD_RTL:.o=.l
 .for f in attr attr-common attrtab automata codes conditions config emit \
 	  extract flags opinit output peep preds recog mddump condmd \
 	  target-def cfn-macros
-gen${f}.lo: ${HH} gen${f}.c
+gen${f}.lo: ${HH} gen${f}.c ${G_RTL_BASE_H}
 gen${f}: gen${f}.lo ${GENPROG_RTL_DEPENDS} 
 	${_MKTARGET_LINK}
 	${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
@@ -341,15 +339,15 @@ CLEANFILES+=	gen${f} gen${f}.lo
 .endfor
 
 .for f in mddeps constants enums
-gen${f}.lo: ${HH} gen${f}.c
-gen${f}: gen${f}.lo ${GENPROG_READER_DEPENDS} 
+gen${f}.lo: ${HH} gen${f}.c ${G_RTL_BASE_H}
+gen${f}: gen${f}.lo ${GENPROG_READER_DEPENDS}
 	${_MKTARGET_LINK}
 	${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
 CLEANFILES+=	gen${f} gen${f}.lo
 .endfor
 
 .for f in check checksum
-gen${f}.lo: ${HH} gen${f}.c
+gen${f}.lo: ${HH} gen${f}.c ${G_RTL_BASE_H}
 gen${f}: gen${f}.lo
 	${_MKTARGET_LINK}
 	${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
@@ -421,7 +419,7 @@ CLEANFILES+=	insn-conditions.md 
 
 # build params.list for params.h.
 params.h: params.list
-DPSRCS+= params.h
+${SRCS}: params.list
 params-list.h: params.def
 params.list: params-list.h
 	${CPP} ${.ALLSRC} | sed 's/^#.*//;/^$$/d' > params.list.tmp && \
@@ -450,10 +448,10 @@ ${CASECFNDEPS}: case-cfn-macros.h
 #
 genextract.lo: insn-config.h
 gencondmd.lo: tm_p.h tm-constrs.h
-read-rtl.lo gencodes.lo genattrtab.lo genautomata.lo: insn-constants.h
-genattr-common.lo gensupport.lo g

CVS commit: src/external/gpl3/gcc/usr.bin/backend

2017-09-12 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Tue Sep 12 09:25:24 UTC 2017

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

Log Message:
Replicate fix from the old gcc.old: alpha.d needs pass-instances.def.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/external/gpl3/gcc/usr.bin/backend/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.37 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.38
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.37	Mon Jun 26 17:38:10 2017
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Sep 12 09:25:24 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.37 2017/06/26 17:38:10 joerg Exp $
+#	$NetBSD: Makefile,v 1.38 2017/09/12 09:25:24 he Exp $
 
 LIBISPRIVATE=	yes
 
@@ -445,6 +445,7 @@ final.o: target-hooks-def.h c-family/c-t
 
 .if ${GCC_MACHINE_ARCH} == "alpha"
 alpha.d alpha.o: tm-constrs.h tm_p.h insn-opinit.h target-hooks-def.h
+alpha.d: pass-instances.def
 .endif
 
 .if ${MACHINE_CPU} == "arm"



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2017-02-13 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Tue Feb 14 00:20:20 UTC 2017

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

Log Message:
sorry, fix comment...


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/external/gpl3/gcc/usr.bin/backend/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.35 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.36
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.35	Mon Feb 13 22:31:09 2017
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Feb 14 00:20:20 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.35 2017/02/13 22:31:09 rin Exp $
+#	$NetBSD: Makefile,v 1.36 2017/02/14 00:20:20 rin Exp $
 
 LIBISPRIVATE=	yes
 
@@ -461,7 +461,7 @@ CPPFLAGS+=-I${.CURDIR}/../../lib/libgcc/
 COPTS.builtins.c+=-O0
 COPTS.convert.c+=-O0
 COPTS.dwarf2out.c+=-O0
-COPTS.dse.c+=-O0	/* port-vax/51967 */
+COPTS.dse.c+=-O0	# XXX port-vax/51967
 COPTS.expmed.c+=-O0
 COPTS.expr.c+=-O0
 COPTS.fixed-value.c+=-O0



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2016-09-29 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Sep 29 20:08:25 UTC 2016

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

Log Message:
Run configure with MAKE=${TOOL_GMAKE:Q} - otherwise "checking
dependency style" test fails on non-netbsd hosts where nbmake can't
find share/mk.

Ok phone@


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/external/gpl3/gcc/usr.bin/backend/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.33 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.34
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.33	Sat Sep  3 15:47:54 2016
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Thu Sep 29 20:08:25 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.33 2016/09/03 15:47:54 christos Exp $
+#	$NetBSD: Makefile,v 1.34 2016/09/29 20:08:25 uwe Exp $
 
 LIBISPRIVATE=	yes
 
@@ -211,7 +211,7 @@ auto-build.h: gmp.h Makefile
 	(cd .ab && \
 		AWK=${TOOL_AWK:Q} \
 		CC=${ORIGHOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} \
-		MAKE=${MAKE:Q} \
+		MAKE=${TOOL_GMAKE:Q} \
 		CONFIG_SHELL=${HOST_SH:Q} \
 		gcc_cv_ld=${LD:Q} \
 		gcc_cv_as=${AS:Q} \



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2016-09-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Sep  3 15:47:54 UTC 2016

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

Log Message:
gcc generates incorrect jump tables with -fPIE


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/usr.bin/backend/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.32 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.33
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.32	Thu Jun 16 23:27:50 2016
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Sat Sep  3 11:47:54 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.32 2016/06/17 03:27:50 skrll Exp $
+#	$NetBSD: Makefile,v 1.33 2016/09/03 15:47:54 christos Exp $
 
 LIBISPRIVATE=	yes
 
@@ -511,7 +511,9 @@ CFLAGS+=	-Wno-stack-protector
 
 .if ${GCC_MACHINE_ARCH} == "m68000" || ${GCC_MACHINE_ARCH} == "m68k" || \
 	${GCC_MACHINE_ARCH} == "coldfire"
-COPTS.tree-loop-distribution.c=	-O2
+COPTS.tree-loop-distribution.c+=-O2
+COPTS.generic-match.c+=-fno-jump-tables
+COPTS.gimple-match.c+=-fno-jump-tables
 .endif
 
 



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2016-06-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Jun 17 03:27:50 UTC 2016

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

Log Message:
arm-builtins needs insn-opinit.h

I had this sitting in my tree already, but prompted by Michael Plass on
port-arm


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/external/gpl3/gcc/usr.bin/backend/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.31 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.32
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.31	Wed May  4 00:28:23 2016
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Fri Jun 17 03:27:50 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.31 2016/05/04 00:28:23 mrg Exp $
+#	$NetBSD: Makefile,v 1.32 2016/06/17 03:27:50 skrll Exp $
 
 LIBISPRIVATE=	yes
 
@@ -449,6 +449,7 @@ alpha.d alpha.o: tm-constrs.h tm_p.h ins
 
 .if ${MACHINE_CPU} == "arm"
 arm.d arm.o: insn-constants.h tm_p.h insn-opinit.h target-hooks-def.h
+arm-builtins.d arm-builtins.o: insn-opinit.h
 .endif
 
 .if ${GCC_MACHINE_ARCH} == "i386" || ${GCC_MACHINE_ARCH} == "x86_64"



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2016-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar 16 05:33:50 UTC 2016

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

Log Message:
quote AD and LD.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/external/gpl3/gcc/usr.bin/backend/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.26 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.27
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.26	Tue Mar 15 21:41:36 2016
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Wed Mar 16 05:33:50 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.26 2016/03/15 21:41:36 mrg Exp $
+#	$NetBSD: Makefile,v 1.27 2016/03/16 05:33:50 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -197,8 +197,8 @@ auto-build.h: gmp.h Makefile
 		CC=${ORIGHOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} \
 		MAKE=${MAKE:Q} \
 		CONFIG_SHELL=${HOST_SH:Q} \
-		gcc_cv_ld=${LD} \
-		gcc_cv_as=${AS} \
+		gcc_cv_ld=${LD:Q} \
+		gcc_cv_as=${AS:Q} \
 		${HOST_SH} ${GNUHOSTDIST}/gcc/configure \
 			--build=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \
 			--host=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2016-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Mar 15 21:41:36 UTC 2016

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

Log Message:
port to GCC 5.3:
- handle wide-int{,-print}.cc with a hack
- clean up CLEANFILES
- build gengtype{-lex,-parse,-state,}.c properly
- build genmatch and its outputs
- build pass-instances.def


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/external/gpl3/gcc/usr.bin/backend/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.25 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.26
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.25	Sat Jan  9 02:05:00 2016
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Mar 15 21:41:36 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.25 2016/01/09 02:05:00 christos Exp $
+#	$NetBSD: Makefile,v 1.26 2016/03/15 21:41:36 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -18,6 +18,10 @@ CPPFLAGS.cppdefault.c+=	-DPREFIX=\"/usr\
 
 HOSTPROG_CXX=	1
 
+# 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
+
 .include 
 
 # Force using C++ for this
@@ -38,14 +42,12 @@ CLEANFILES+=	gengenrtl genrtl.h \
 		genflags genflags.h \
 		gencheck tree-check.h \
 		insn-preds.c genpreds tm-preds.h tm_p.h cs-tm_p.h \
-		genmodes insn-modes.c insn-modes.h min-insn-modes.c \
-		auto-host.h build-print-rtl.c \
-		build-rtl.c build-errors.c build-varray.c \
-		build-bitmap.c build-ggc-none.c \
+		auto-host.h \
 		gt-*.h *.o *.lo \
 		cs-config.h \
 		gcov-iov gcov-iov.h \
-		gtype-go.h gtype.state
+		gtype-go.h gtype.state \
+		pass-instances.def
 
 # XXX
 COPTS.varasm.c=			-Wno-error
@@ -87,7 +89,7 @@ gtyp-input.list.tmp: ${GCCARCH}/gtyp-inp
 CLEANFILES+=	gtyp-input.list.tmp
 
 # XXX
-CLEANFILES+=	gtype-lto.h gtype-objcp.h tm-constrs.h
+CLEANFILES+=	gtype-lto.h gtype-objcp.h tm-constrs.h gtype-jit.h
 
 gtype-desc.c: gtype-desc.h
 gtype-desc.h: gengtype gtyp-input.list.tmp
@@ -108,6 +110,13 @@ gengtype: gengtype.lo gengtype-lex.lo ge
 	${_MKTARGET_LINK}
 	${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
 
+# XXX fix this by properly marking all the files that should
+# XXX be built with -DGENERATOR_FILE
+COPTS.gengtype-lex.c=	-UGENERATOR_FILE -DHOST_GENERATOR_FILE
+COPTS.gengtype-parse.c=	-UGENERATOR_FILE -DHOST_GENERATOR_FILE
+COPTS.gengtype-state.c=	-UGENERATOR_FILE -DHOST_GENERATOR_FILE
+COPTS.gengtype.c=	-UGENERATOR_FILE -DHOST_GENERATOR_FILE
+
 gtyp-gen.h: Makefile
 	${_MKTARGET_CREATE}
 	(\
@@ -141,6 +150,21 @@ genmodes: genmodes.lo build-errors.lo
 	${_MKTARGET_LINK}
 	${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
 
+CLEANFILES+=	genmodes insn-modes.c insn-modes.h min-insn-modes.c
+
+gimple-match.c: genmatch
+	./genmatch --gimple ${GNUHOSTDIST}/gcc/match.pd > gimple-match.c.tmp
+	mv gimple-match.c.tmp gimple-match.c
+generic-match.c: genmatch
+	./genmatch --generic ${GNUHOSTDIST}/gcc/match.pd > generic-match.c.tmp
+	mv generic-match.c.tmp generic-match.c
+genmatch.lo: ${HH_NORTL} ${G_GGC_H}
+genmatch: genmatch.lo build-errors.lo build-vec.lo build-hash-table.lo
+	${_MKTARGET_LINK}
+	${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBCPP} ${HOSTLIBIBERTY}
+
+CLEANFILES+=	genmatch gimple-match.c generic-match.c
+
 gcov-iov.h: gcov-iov
 	${_MKTARGET_CREATE}
 	./gcov-iov "${BASEVER}" "${DEVPHASE}" >${.TARGET}
@@ -176,25 +200,31 @@ auto-build.h: gmp.h Makefile
 		gcc_cv_ld=${LD} \
 		gcc_cv_as=${AS} \
 		${HOST_SH} ${GNUHOSTDIST}/gcc/configure \
-			--enable-lto \
 			--build=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \
 			--host=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \
 			--target=${MACHINE_GNU_PLATFORM} && \
 		mv auto-host.h ../auto-build.h) && \
 	rm -rf .ab
 
+pass-instances.def: passes.def gen-pass-instances.awk
+	${_MKTARGET_CREATE}
+	${TOOL_AWK} -f ${GNUHOSTDIST}/gcc/gen-pass-instances.awk \
+	  ${GNUHOSTDIST}/gcc/passes.def > pass-instances.def
+CLEANFILES+=	pass-instances.def
+
 #
 # These are copies of files we build for the build host that are used
 # by the genfoo programs.
 #
 
 build-rtl.c: rtl.c \
-  ${G_RTL_H} real.h ${G_GCC_H} errors.h gtype-desc.h
+  ${G_RTL_H} real.h ${G_GCC_H} ${G_GGC_H} errors.h
 	${_MKTARGET_CREATE}
 	rm -f build-rtl.c
 	${TOOL_SED} -e 's/${.TARGET}
 build-rtl.lo: ${HH}
+CLEANFILES+=	build-rtl.c
 
 build-print-rtl.c: print-rtl.c \
   ${G_RTL_BASE_H} ${G_GTM_H} hard-reg-set.h
@@ -203,23 +233,25 @@ build-print-rtl.c: print-rtl.c \
 	${TOOL_SED} -e 's/${.TARGET}
 build-print-rtl.lo: ${HH}
-build/print-rtl.o: print-rtl.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \
+build-print-rtl.o: print-rtl.c $(BCONFIG_H) $(SYSTEM_H) coretypes.h \
   $(GTM_H) $(RTL_BASE_H)
-
+CLEANFILES+=	b

CVS commit: src/external/gpl3/gcc/usr.bin/backend

2015-02-01 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sun Feb  1 17:47:00 UTC 2015

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

Log Message:
update m68k gcc bug workarounds for gcc 4.8.  fixes PR 49609.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/usr.bin/backend/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.23 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.24
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.23	Wed Jan  7 02:06:03 2015
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Sun Feb  1 17:47:00 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.23 2015/01/07 02:06:03 christos Exp $
+#	$NetBSD: Makefile,v 1.24 2015/02/01 17:47:00 chs Exp $
 
 LIBISPRIVATE=	yes
 
@@ -398,9 +398,9 @@ COPTS.recog.c=-O0
 
 CFLAGS+=	-Wno-stack-protector
 
-.if ${GCC_MACHINE_ARCH} == "m68000" || ${GCC_MACHINE_ARCH} == "m68k"
-COPTS.lambda-code.c=		-O0
-COPTS.tree-loop-linear.c=	-O0
+.if ${GCC_MACHINE_ARCH} == "m68000" || ${GCC_MACHINE_ARCH} == "m68k" || \
+	${GCC_MACHINE_ARCH} == "coldfire"
+COPTS.tree-loop-distribution.c=	-O2
 .endif
 
 COPTS.tree.c=	${${ACTIVE_CC} == "clang" :? -O0 :}



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2015-01-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Jan  7 02:06:03 UTC 2015

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

Log Message:
enable lto


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gcc/usr.bin/backend/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.22 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.23
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.22	Sat Jul  5 20:21:24 2014
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Jan  6 21:06:03 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.22 2014/07/06 00:21:24 joerg Exp $
+#	$NetBSD: Makefile,v 1.23 2015/01/07 02:06:03 christos Exp $
 
 LIBISPRIVATE=	yes
 
@@ -176,6 +176,7 @@ auto-build.h: gmp.h Makefile
 		gcc_cv_ld=${LD} \
 		gcc_cv_as=${AS} \
 		${HOST_SH} ${GNUHOSTDIST}/gcc/configure \
+			--enable-lto \
 			--build=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \
 			--host=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \
 			--target=${MACHINE_GNU_PLATFORM} && \



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2014-03-15 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Mar 15 20:46:38 UTC 2014

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

Log Message:
make sure we use the C compiler (not C++) for CC= when running the
configure for auto-build.h.  fixes problems on linux.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/gcc/usr.bin/backend/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.20 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.21
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.20	Mon Mar 10 18:57:35 2014
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Sat Mar 15 20:46:38 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.20 2014/03/10 18:57:35 mrg Exp $
+#	$NetBSD: Makefile,v 1.21 2014/03/15 20:46:38 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -21,6 +21,7 @@ HOSTPROG_CXX=	1
 .include 
 
 # Force using C++ for this
+ORIGHOST_CC:=	${HOST_CC}
 HOST_CC:=	${HOST_CXX}
 CC:=		${CXX}
 CFLAGS:=	${CXXFLAGS}
@@ -159,6 +160,8 @@ ${G_OBJS} ${G_OBJS:.o=.d}:	tm_p.h		# XXX
 .include "../Makefile.options"
 
 # Yuck, we have to run configure to generate this one...
+# We use ORIGHOST_CC here because GCC's ./configure expects (and
+# depends upon) it.
 CLEANFILES+=	auto-build.h
 HOST_CFLAGS+= -I${.OBJDIR}
 auto-build.h: gmp.h Makefile
@@ -167,7 +170,7 @@ auto-build.h: gmp.h Makefile
 	mkdir .ab && \
 	(cd .ab && \
 		AWK=${TOOL_AWK:Q} \
-		CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} \
+		CC=${ORIGHOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} \
 		MAKE=${MAKE:Q} \
 		CONFIG_SHELL=${HOST_SH:Q} \
 		gcc_cv_ld=${LD} \



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2014-03-10 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Mar 10 18:57:36 UTC 2014

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

Log Message:
pass $LD and $AS to the auto-build.h generation, so its configure
gets the right answers for many things.  in particular, it enables
HAVE_AS_TLS which the sparc port needs for TARGET_TLS to work.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/usr.bin/backend/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.19 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.20
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.19	Sat Mar  1 10:00:49 2014
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Mon Mar 10 18:57:35 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.19 2014/03/01 10:00:49 mrg Exp $
+#	$NetBSD: Makefile,v 1.20 2014/03/10 18:57:35 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -170,6 +170,8 @@ auto-build.h: gmp.h Makefile
 		CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} \
 		MAKE=${MAKE:Q} \
 		CONFIG_SHELL=${HOST_SH:Q} \
+		gcc_cv_ld=${LD} \
+		gcc_cv_as=${AS} \
 		${HOST_SH} ${GNUHOSTDIST}/gcc/configure \
 			--build=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \
 			--host=`${HOST_SH} ${GNUHOSTDIST}/config.guess` \



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2013-05-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May 24 16:37:33 UTC 2013

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

Log Message:
and m68000 == m68k


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/usr.bin/backend/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.16 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.17
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.16	Mon Jan 14 11:00:49 2013
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Fri May 24 12:37:32 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.16 2013/01/14 16:00:49 pooka Exp $
+#	$NetBSD: Makefile,v 1.17 2013/05/24 16:37:32 christos Exp $
 
 LIBISPRIVATE=	yes
 
@@ -321,7 +321,7 @@ i386.d i386.o: tm-constrs.h
 
 CFLAGS+=	-Wno-stack-protector
 
-.if ${MACHINE_ARCH} == "m68000"
+.if ${MACHINE_ARCH} == "m68000" || ${MACHINE_ARCH} == "m68k"
 COPTS.lambda-code.c=		-O0
 COPTS.tree-loop-linear.c=	-O0
 .endif



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2013-01-14 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jan 14 16:00:49 UTC 2013

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

Log Message:
... but make sure to unset empty before it's used as an empty variable.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/usr.bin/backend/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.15 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.16
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.15	Mon Jan 14 15:50:18 2013
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Mon Jan 14 16:00:49 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2013/01/14 15:50:18 pooka Exp $
+#	$NetBSD: Makefile,v 1.16 2013/01/14 16:00:49 pooka Exp $
 
 LIBISPRIVATE=	yes
 
@@ -112,6 +112,7 @@ gengtype: gengtype.lo gengtype-lex.lo ge
 gtyp-gen.h: Makefile
 	${_MKTARGET_CREATE}
 	(\
+	unset empty			; \
 	echo "static const char *srcdir = \"$(G_GTFILES_SRCDIR)\";"	; \
 	echo "static const char *lang_files[] = {"			; \
 	for f in $$empty $(G_GTFILES_FILES_FILES); do echo "\"$$f\", "; done ; \



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2013-01-14 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Mon Jan 14 15:50:18 UTC 2013

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

Log Message:
Make this work with xpg4/sh where "for x in;" is an error.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/usr.bin/backend/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.14 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.15
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.14	Thu Nov 10 09:28:25 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Mon Jan 14 15:50:18 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2011/11/10 09:28:25 yamt Exp $
+#	$NetBSD: Makefile,v 1.15 2013/01/14 15:50:18 pooka Exp $
 
 LIBISPRIVATE=	yes
 
@@ -114,17 +114,16 @@ gtyp-gen.h: Makefile
 	(\
 	echo "static const char *srcdir = \"$(G_GTFILES_SRCDIR)\";"	; \
 	echo "static const char *lang_files[] = {"			; \
-	for f in $(G_GTFILES_FILES_FILES); do echo "\"$$f\", "; done	; \
+	for f in $$empty $(G_GTFILES_FILES_FILES); do echo "\"$$f\", "; done ; \
 	echo "NULL };"			; \
 	echo "static const char *langs_for_lang_files[] = {"		; \
-	for f in $(G_GTFILES_FILES_LANGS); do echo "\"$$f\", "; done 	; \
+	for f in $$empty $(G_GTFILES_FILES_LANGS); do echo "\"$$f\", "; done ; \
 	echo "NULL };"			; \
 	echo "static const char *all_files[] = {"			; \
-	for f in $(G_GTFILES); do echo "\"$$f\", "; done		; \
+	for f in $$empty $(G_GTFILES); do echo "\"$$f\", "; done	; \
 	echo " NULL };"			; \
 	echo "static const char *lang_dir_names[] = {"			; \
-	echo "\"c\", "			; \
-	for f in $(G_GTFILES_LANG_DIR_NAMES); do echo "\"$$f\", "; done	; \
+	for f in c $(G_GTFILES_LANG_DIR_NAMES); do echo "\"$$f\", "; done ; \
 	echo "NULL };"			; \
 	) >${.TARGET}
 



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-11-10 Thread YAMAMOTO Takashi
Module Name:src
Committed By:   yamt
Date:   Thu Nov 10 09:28:25 UTC 2011

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

Log Message:
add a crude dependency on tm_p.h.  build.sh -j128 fails for me without this.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/usr.bin/backend/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.13 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.14
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.13	Mon Nov  7 23:21:32 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Thu Nov 10 09:28:25 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.13 2011/11/07 23:21:32 njoly Exp $
+#	$NetBSD: Makefile,v 1.14 2011/11/10 09:28:25 yamt Exp $
 
 LIBISPRIVATE=	yes
 
@@ -163,6 +163,8 @@ tm_p.h: Makefile tm-preds.h
 	HEADERS="$(G_tm_p_include_list)" DEFINES="" \
 	${HOST_SH} ${GNUHOSTDIST}/gcc/mkconfig.sh ${.TARGET}
 
+${G_OBJS} ${G_OBJS:.o=.d}:	tm_p.h		# XXX crude
+
 CLEANFILES+=	options.h options.c optionlist
 optionlist: ${G_ALL_OPT_FILES} ${GCCARCH}/defs.mk Makefile ${DIST}/gcc/opt-gather.awk
 	${TOOL_AWK} -f ${DIST}/gcc/opt-gather.awk ${G_ALL_OPT_FILES} > ${.TARGET}



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-11-07 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Mon Nov  7 23:21:32 UTC 2011

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

Log Message:
Adjust dependencies for alpha.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/usr.bin/backend/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.12 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.13
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.12	Thu Jul 21 03:01:26 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Mon Nov  7 23:21:32 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.12 2011/07/21 03:01:26 mrg Exp $
+#	$NetBSD: Makefile,v 1.13 2011/11/07 23:21:32 njoly Exp $
 
 LIBISPRIVATE=	yes
 
@@ -305,6 +305,10 @@ vec.lo: gtype-desc.h
 gtype-desc.d gtype-desc.o: insn-constants.h
 insn-emit.d insn-emit.o: tm-constrs.h
 
+.if ${MACHINE_ARCH} == "alpha"
+alpha.d alpha.o: tm-constrs.h tm_p.h
+.endif
+
 .if ${MACHINE_CPU} == "arm"
 arm.d arm.o: insn-constants.h tm_p.h
 .endif



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-07-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Jul 21 03:01:26 UTC 2011

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

Log Message:
add some missing dependancies.  there are probably a bunch more make
hasn't spat at me yet.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/usr.bin/backend/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.11 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.12
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.11	Tue Jul 19 15:59:01 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Thu Jul 21 03:01:26 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.11 2011/07/19 15:59:01 tron Exp $
+#	$NetBSD: Makefile,v 1.12 2011/07/21 03:01:26 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -303,11 +303,15 @@
 cgraphunit.d cgraphunit.o: gcov-io.h
 vec.lo: gtype-desc.h
 gtype-desc.d gtype-desc.o: insn-constants.h
-# XXX
+insn-emit.d insn-emit.o: tm-constrs.h
+
+.if ${MACHINE_CPU} == "arm"
+arm.d arm.o: insn-constants.h tm_p.h
+.endif
+
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 i386.d i386.o: tm-constrs.h
 .endif
-insn-emit.d insn-emit.o: tm-constrs.h
 
 CFLAGS+=	-Wno-stack-protector
 



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-07-18 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jul 19 01:38:00 UTC 2011

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

Log Message:
merge the common CPPFLAGS and HOST_CPPFLAGS.  put -DGENERATOR_FILE
into HOST_CPPFLAGS, and remove the hacky list of files to build
with it.  this matches what the real GCC build does, and fixes build
problems seen on OSX.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/usr.bin/backend/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.9 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.10
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.9	Wed Jul  6 01:18:32 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Jul 19 01:37:59 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.9 2011/07/06 01:18:32 mrg Exp $
+#	$NetBSD: Makefile,v 1.10 2011/07/19 01:37:59 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -6,9 +6,9 @@
 
 SRCS=		${G_OBJS:.o=.c} ${G_out_file:T}
 
-CPPFLAGS+=	-I. -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \
-		-DTARGET_NAME=\"${MACHINE_GNU_PLATFORM}\"
-HOST_CPPFLAGS+=	-I. -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
+BOTH_CPPFLAGS+=	-I. -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
+CPPFLAGS+=	${BOTH_CPPFLAGS} -DTARGET_NAME=\"${MACHINE_GNU_PLATFORM}\"
+HOST_CPPFLAGS+=	${BOTH_CPPFLAGS} -DGENERATOR_FILE
 DPSRCS+=	insn-attr.h insn-codes.h insn-config.h insn-flags.h tree-check.h
 CPPFLAGS.prefix.c+=	-DPREFIX=\"/usr\"
 CPPFLAGS.cppdefault.c+=	-DPREFIX=\"/usr\"
@@ -41,14 +41,6 @@
 		cs-config.h \
 		gcov-iov gcov-iov.h \
 
-#
-# These files have special needs
-#
-.for f in \
-	build-errors build-ggc-none build-print-rtl build-rtl build-varray dummy-conditions gcov-iov genattr genattrtab genautomata gencheck genchecksum gencodes genconditions genconfig genconstants genemit genextract genflags gengenrtl gengtype gengtype-lex genmddeps genmodes genopinit genoutput genpeep genpreds genrecog gensupport insn-conditions min-insn-modes read-rtl
-CPPFLAGS.${f}.c=		-DGENERATOR_FILE
-.endfor
-
 # XXX
 COPTS.varasm.c=			-Wno-error
 
@@ -319,4 +311,9 @@
 
 COPTS+=-Wno-stack-protector
 
+.if ${MACHINE_ARCH} == "m68000"
+COPTS.lambda-code.c=		-O0
+COPTS.tree-loop-linear.c=	-O0
+.endif
+
 .PATH: ${DIST}/gcc ${DIST}/libiberty ${GCCARCH} ${G_out_file:H} ${DIST}/include



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-07-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Jul  6 01:18:33 UTC 2011

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

Log Message:
fix update build break on sh3.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/usr.bin/backend/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.8 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.9
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.8	Sun Jul  3 06:42:03 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Wed Jul  6 01:18:32 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2011/07/03 06:42:03 mrg Exp $
+#	$NetBSD: Makefile,v 1.9 2011/07/06 01:18:32 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -107,6 +107,7 @@
 	rm -f auto-host.h
 	ln -s ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/auto-host.h .
 	if [ -f ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/sysroot-suffix.h ]; then \
+	  rm -f sysroot-suffix.h; \
 	  ln -s ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/sysroot-suffix.h ; \
 	fi
 	./gengtype ${DIST}/gcc gtyp-input.list.tmp



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-07-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul  3 06:42:03 UTC 2011

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

Log Message:
gengtype also needs sysroot-suffix.h if present


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/usr.bin/backend/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.7 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.8
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.7	Fri Jul  1 01:29:12 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Sun Jul  3 06:42:03 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.7 2011/07/01 01:29:12 mrg Exp $
+#	$NetBSD: Makefile,v 1.8 2011/07/03 06:42:03 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -106,6 +106,9 @@
 	${_MKTARGET_CREATE}
 	rm -f auto-host.h
 	ln -s ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/auto-host.h .
+	if [ -f ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/sysroot-suffix.h ]; then \
+	  ln -s ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/sysroot-suffix.h ; \
+	fi
 	./gengtype ${DIST}/gcc gtyp-input.list.tmp
 # gengtype is the real need for options.h
 gengtype.lo gengtype-lex.lo gengtype-parse.lo: ${HH} gtyp-gen.h config.h options.h



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-06-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  1 01:29:12 UTC 2011

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

Log Message:
clean up and add some missing dependancies


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/usr.bin/backend/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.6 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.7
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.6	Wed Jun 29 02:17:35 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Fri Jul  1 01:29:12 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2011/06/29 02:17:35 mrg Exp $
+#	$NetBSD: Makefile,v 1.7 2011/07/01 01:29:12 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -93,12 +93,7 @@
 	${_MKTARGET_LINK}
 	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
 
-.if 0
-gtyp-input.list: Makefile
-	for f in ${G_GTFILES}; do echo $f; done > ${.TARGET}
-CLEANFILES+=	gtyp-input.list
-.endif
-
+# be nice to generate this entirely; but difficult.
 gtyp-input.list.tmp: ${GCCARCH}/gtyp-input.list
 	sed s#SRCDIR#${DIST}# < ${.ALLSRC} > ${.TARGET}
 CLEANFILES+=	gtyp-input.list.tmp
@@ -166,7 +161,7 @@
 #	TARGET_CPU_DEFAULT="$(G_target_cpu_default)" \
 #	${HOST_SH} ${GNUHOSTDIST}/gcc/mkconfig.sh ${.TARGET}
 
-tm_p.h: Makefile
+tm_p.h: Makefile tm-preds.h
 	${_MKTARGET_CREATE}
 	TARGET_CPU_DEFAULT="" \
 	HEADERS="$(G_tm_p_include_list)" DEFINES="" \
@@ -295,26 +290,11 @@
 	./gen${f:R} ${G_md_file} >${.TARGET}
 .endfor
 
-.if 0
-#
-# "One of these things is not like the other"
-#
-CLEANFILES+=		genattrtab insn-attrtab.c
-genattrtab.lo: ${HH} gtype-desc.h
-genautomata.lo: ${HH}
-genattrtab: genattrtab.lo genautomata.lo ${EXTRADEPENDS} ${G_BUILD_VARRAY:.o=.lo}
-	${_MKTARGET_LINK}
-	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} -lm
-insn-attrtab.c: genattrtab ${G_md_file}
-	${_MKTARGET_CREATE}
-	./genattrtab ${G_md_file} >${.TARGET}
-.endif
-
 #
 # Required hard-coded dependancies.
 #
 genextract.lo: insn-config.h
-insn-conditions.lo: insn-constants.h tm_p.h tm-preds.h
+insn-conditions.lo: insn-constants.h tm_p.h
 build-ggc-none.lo: gtype-desc.h
 ggc-none.o: gtype-desc.h
 
@@ -323,13 +303,15 @@
 toplev.d toplev.o: options.h
 coverage.d: gcov-iov.h
 gcov-io.h: gcov-iov.h
-alias.d alias.o: insn-constants.h tm_p.h tm-preds.h
+alias.d alias.o: insn-constants.h tm_p.h
 cgraphunit.d cgraphunit.o: gcov-io.h
 vec.lo: gtype-desc.h
+gtype-desc.d gtype-desc.o: insn-constants.h
 # XXX
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 i386.d i386.o: tm-constrs.h
 .endif
+insn-emit.d insn-emit.o: tm-constrs.h
 
 COPTS+=-Wno-stack-protector
 



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-06-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Jun 29 02:17:36 UTC 2011

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

Log Message:
apply some .if checks upon dependancies.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/usr.bin/backend/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.5 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.6
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.5	Wed Jun 29 02:01:37 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Wed Jun 29 02:17:35 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.5 2011/06/29 02:01:37 mrg Exp $
+#	$NetBSD: Makefile,v 1.6 2011/06/29 02:17:35 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -327,7 +327,9 @@
 cgraphunit.d cgraphunit.o: gcov-io.h
 vec.lo: gtype-desc.h
 # XXX
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 i386.d i386.o: tm-constrs.h
+.endif
 
 COPTS+=-Wno-stack-protector
 



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-06-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jun 28 10:11:04 UTC 2011

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

Log Message:
some of the way towards working.  there's a couple of hacks in there that
need to be cleaned up before this is properly finished.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/usr.bin/backend/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.3 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.4
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.3	Tue Jun 28 04:23:01 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Jun 28 10:11:04 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.3 2011/06/28 04:23:01 mrg Exp $
+#	$NetBSD: Makefile,v 1.4 2011/06/28 10:11:04 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -10,7 +10,9 @@
 		-DTARGET_NAME=\"${MACHINE_GNU_PLATFORM}\"
 HOST_CPPFLAGS+=	-I. -I${GCCARCH} ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
 DPSRCS+=	insn-attr.h insn-codes.h insn-config.h insn-flags.h tree-check.h
-CPPFLAGS.prefix.c+= -DPREFIX=\"/usr\"
+CPPFLAGS.prefix.c+=	-DPREFIX=\"/usr\"
+CPPFLAGS.cppdefault.c+=	-DPREFIX=\"/usr\"
+CPPFLAGS+=	-I${DIST}/libgcc
 
 .include 
 
@@ -72,6 +74,9 @@
 tm-preds.h: genpreds ${G_md_file}
 	${_MKTARGET_CREATE}
 	./genpreds -h ${G_md_file} >${.TARGET}
+tm-constrs.h: genpreds ${G_md_file}
+	${_MKTARGET_CREATE}
+	./genpreds -c ${G_md_file} >${.TARGET}
 insn-preds.c: genpreds ${G_md_file}
 	${_MKTARGET_CREATE}
 	./genpreds ${G_md_file} >${.TARGET}
@@ -88,19 +93,24 @@
 	${_MKTARGET_LINK}
 	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
 
+.if 0
 gtyp-input.list: Makefile
 	for f in ${G_GTFILES}; do echo $f; done > ${.TARGET}
 CLEANFILES+=	gtyp-input.list
+.endif
+
+gtyp-input.list.tmp: ${GCCARCH}/gtyp-input.list
+	sed s#SRCDIR#${DIST}/# < ${.ALLSRC} > ${.TARGET}
 
 gtype-desc.c: gtype-desc.h
-gtype-desc.h: gengtype
+gtype-desc.h: gengtype gtyp-input.list.tmp
 	${_MKTARGET_CREATE}
 	rm -f auto-host.h
 	ln -s ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/auto-host.h .
-	./gengtype ${DIST} gtyp-input.list
+	./gengtype ${DIST} gtyp-input.list.tmp
 # gengtype is the real need for options.h
 gengtype.lo gengtype-lex.lo gengtype-parse.lo: ${HH} gtyp-gen.h config.h options.h
-gengtype: gengtype.lo gengtype-lex.lo gengtype-parse.lo build-errors.lo gtyp-input.list
+gengtype: gengtype.lo gengtype-lex.lo gengtype-parse.lo build-errors.lo
 	${_MKTARGET_LINK}
 	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
 
@@ -266,19 +276,22 @@
 
 EXTRADEPENDS=		${G_BUILD_RTL:.o=.lo} ${G_BUILD_SUPPORT:.o=.lo} \
 			${G_BUILD_PRINT:.o=.lo} ${G_BUILD_ERRORS:.o=.lo}
-.for f in attr.h codes.h config.h emit.c extract.c flags.h opinit.c output.c \
+LDFLAGS.genautomata+=	-lm
+
+.for f in attr.h attrtab.c automata.c codes.h config.h emit.c extract.c flags.h opinit.c output.c \
 	  peep.c recog.c
 CLEANFILES+=		gen${f:R} insn-${f}
 
 gen${f:R}.lo: ${HH}
 gen${f:R}: gen${f:R}.lo ${EXTRADEPENDS} 
 	${_MKTARGET_LINK}
-	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
+	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
 insn-${f}: gen${f:R} ${G_md_file}
 	${_MKTARGET_CREATE}
 	./gen${f:R} ${G_md_file} >${.TARGET}
 .endfor
 
+.if 0
 #
 # "One of these things is not like the other"
 #
@@ -291,6 +304,7 @@
 insn-attrtab.c: genattrtab ${G_md_file}
 	${_MKTARGET_CREATE}
 	./genattrtab ${G_md_file} >${.TARGET}
+.endif
 
 #
 # Required hard-coded dependancies.
@@ -305,6 +319,10 @@
 toplev.d toplev.o: options.h
 coverage.d: gcov-iov.h
 gcov-io.h: gcov-iov.h
+alias.d alias.o: insn-constants.h tm_p.h tm-preds.h
+cgraphunit.d cgraphunit.o: gcov-io.h
+# XXX
+i386.d i386.o: tm-constrs.h
 
 COPTS+=-Wno-stack-protector
 



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-06-27 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jun 28 04:23:01 UTC 2011

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

Log Message:
begin to fix this for GCC 4.5.  gengtype-yacc is gone, and -parse is its
replacement.  build the list of files from $G_GTFILES like GCC build dones.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/usr.bin/backend/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.2 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.3
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.2	Fri Jun 24 05:26:06 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Jun 28 04:23:01 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.2 2011/06/24 05:26:06 mrg Exp $
+#	$NetBSD: Makefile,v 1.3 2011/06/28 04:23:01 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -43,7 +43,7 @@
 # These files have special needs
 #
 .for f in \
-	build-errors build-ggc-none build-print-rtl build-rtl build-varray dummy-conditions gcov-iov genattr genattrtab genautomata gencheck genchecksum gencodes genconditions genconfig genconstants genemit genextract genflags gengenrtl gengtype gengtype-lex gengtype-yacc genmddeps genmodes genopinit genoutput genpeep genpreds genrecog gensupport insn-conditions min-insn-modes read-rtl
+	build-errors build-ggc-none build-print-rtl build-rtl build-varray dummy-conditions gcov-iov genattr genattrtab genautomata gencheck genchecksum gencodes genconditions genconfig genconstants genemit genextract genflags gengenrtl gengtype gengtype-lex genmddeps genmodes genopinit genoutput genpeep genpreds genrecog gensupport insn-conditions min-insn-modes read-rtl
 CPPFLAGS.${f}.c=		-DGENERATOR_FILE
 .endfor
 
@@ -88,15 +88,19 @@
 	${_MKTARGET_LINK}
 	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
 
+gtyp-input.list: Makefile
+	for f in ${G_GTFILES}; do echo $f; done > ${.TARGET}
+CLEANFILES+=	gtyp-input.list
+
 gtype-desc.c: gtype-desc.h
 gtype-desc.h: gengtype
 	${_MKTARGET_CREATE}
 	rm -f auto-host.h
 	ln -s ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/auto-host.h .
-	./gengtype
+	./gengtype ${DIST} gtyp-input.list
 # gengtype is the real need for options.h
-gengtype.lo gengtype-lex.lo gengtype-yacc.lo: ${HH} gtyp-gen.h config.h options.h
-gengtype: gengtype.lo gengtype-lex.lo gengtype-yacc.lo build-errors.lo
+gengtype.lo gengtype-lex.lo gengtype-parse.lo: ${HH} gtyp-gen.h config.h options.h
+gengtype: gengtype.lo gengtype-lex.lo gengtype-parse.lo build-errors.lo gtyp-input.list
 	${_MKTARGET_LINK}
 	${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY}
 



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2011-06-23 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jun 24 05:26:07 UTC 2011

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

Log Message:
look in the right path for auto-host.h


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/usr.bin/backend/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.1 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.2
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.1	Tue Jun 21 06:03:13 2011
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Fri Jun 24 05:26:06 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1 2011/06/21 06:03:13 mrg Exp $
+#	$NetBSD: Makefile,v 1.2 2011/06/24 05:26:06 mrg Exp $
 
 LIBISPRIVATE=	yes
 
@@ -92,7 +92,7 @@
 gtype-desc.h: gengtype
 	${_MKTARGET_CREATE}
 	rm -f auto-host.h
-	ln -s ${.CURDIR}/../arch/${MACHINE_ARCH}/auto-host.h .
+	ln -s ${.CURDIR}/../gcc/arch/${MACHINE_ARCH}/auto-host.h .
 	./gengtype
 # gengtype is the real need for options.h
 gengtype.lo gengtype-lex.lo gengtype-yacc.lo: ${HH} gtyp-gen.h config.h options.h