Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/lib consolidate the tconfig.h generation.
details: https://anonhg.NetBSD.org/src/rev/5eeb0232f612
branches: trunk
changeset: 766610:5eeb0232f612
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Jun 29 01:56:57 2011 +0000
description:
consolidate the tconfig.h generation.
diffstat:
external/gpl3/gcc/lib/Makefile.tconfigh | 10 ++++++++++
external/gpl3/gcc/lib/crtstuff/Makefile | 22 +++++++++++++---------
external/gpl3/gcc/lib/libgcc/Makefile.inc | 9 ++-------
external/gpl3/gcc/lib/libobjc/Makefile | 10 +++-------
4 files changed, 28 insertions(+), 23 deletions(-)
diffs (129 lines):
diff -r d8f53f1fdcc5 -r 5eeb0232f612 external/gpl3/gcc/lib/Makefile.tconfigh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gcc/lib/Makefile.tconfigh Wed Jun 29 01:56:57 2011 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: Makefile.tconfigh,v 1.1 2011/06/29 01:56:58 mrg Exp $
+
+tconfig.h:
+ ${_MKTARGET_CREATE}
+ TM_DEFINES="$(G_tm_defines)" \
+ HEADERS="$(G_xm_include_list)" DEFINES="USED_FOR_TARGET $(G_xm_defines)" \
+ TARGET_CPU_DEFAULT="" \
+ ${HOST_SH} $(GNUHOSTDIST)/gcc/mkconfig.sh tconfig.h
+
+CLEANFILES+= cs-tconfig.h tconfig.h
diff -r d8f53f1fdcc5 -r 5eeb0232f612 external/gpl3/gcc/lib/crtstuff/Makefile
--- a/external/gpl3/gcc/lib/crtstuff/Makefile Wed Jun 29 01:38:27 2011 +0000
+++ b/external/gpl3/gcc/lib/crtstuff/Makefile Wed Jun 29 01:56:57 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2011/06/23 11:47:12 mrg Exp $
+# $NetBSD: Makefile,v 1.3 2011/06/29 01:56:57 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -17,11 +17,18 @@
CPPFLAGS+= -I${GCCARCH} ${GALLCFLAGS:M-D*} ${GALLCFLAGS:M-I*:N-I.*}
CPPFLAGS+= -I.
+COPTS+= -finhibit-size-directive \
+ -fno-inline \
+ -fno-exceptions \
+ -fno-zero-initialized-in-bss \
+ -fno-toplevel-reorder \
+ -fno-tree-vectorize \
+ -fno-omit-frame-pointer \
+ -fno-asynchronous-unwind-tables
GCFLAGS= ${GALLCFLAGS:N-D*:N-I*:N-i*:N./*}
DPSRCS+= ${.CURDIR}/arch/${MACHINE_ARCH}.mk tconfig.h
-CLEANFILES+= cs-tconfig.h tconfig.h
.include "${.CURDIR}/arch/${MACHINE_ARCH}.mk"
@@ -30,6 +37,8 @@
.if ${MKPIC} != "no"
SRCS+= crtbeginS.c crtendS.c
OBJS+= crtbeginS.o crtendS.o # for shared libraries
+CPPFLAGS.crtbeginS.o+= -fPIC -DPIC
+CPPFLAGS.crtendS.o+= -fPIC -DPIC
SRCS+= crtbeginT.c
OBJS+= crtbeginT.o # for -static links
.endif
@@ -41,12 +50,7 @@
.PATH: ${DIST}/gcc ${DIST}/gcc/config ${G_CONFIGDIR}
-tconfig.h:
- ${_MKTARGET_CREATE}
- TM_DEFINES="$(G_tm_defines)" \
- HEADERS="$(G_xm_file)" XM_DEFINES="$(G_xm_defines)" \
- TARGET_CPU_DEFAULT="" \
- ${HOST_SH} $(GNUHOSTDIST)/gcc/mkconfig.sh tconfig.h
+.include "../Makefile.tconfigh"
# these aren't necessary but are #include'd
FAKEHEADERS=options.h insn-flags.h insn-constants.h
@@ -63,7 +67,7 @@
# Override the default .c -> .o rule.
.c.o:
${_MKTARGET_COMPILE}
- ${CC} ${CPPFLAGS} ${GCFLAGS} ${CPUFLAGS} -c ${.IMPSRC} -o ${.TARGET}.o
+ ${CC} ${CPPFLAGS} ${CPPFLAGS.${.TARGET}} ${GCFLAGS} ${CPUFLAGS} -c ${.IMPSRC} -o ${.TARGET}.o
mv ${.TARGET}.o ${.TARGET}
.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
diff -r d8f53f1fdcc5 -r 5eeb0232f612 external/gpl3/gcc/lib/libgcc/Makefile.inc
--- a/external/gpl3/gcc/lib/libgcc/Makefile.inc Wed Jun 29 01:38:27 2011 +0000
+++ b/external/gpl3/gcc/lib/libgcc/Makefile.inc Wed Jun 29 01:56:57 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.3 2011/06/28 04:03:56 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.4 2011/06/29 01:56:57 mrg Exp $
.if ${MKGCC} != "no"
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH}.mk)
@@ -134,13 +134,8 @@
.PATH: ${DIST}/gcc ${DIST}/gcc/cp ${DIST}/gcc/cp/inc ${DIST}/gcc/config \
${G_CONFIGDIR}
-tconfig.h:
- ${_MKTARGET_CREATE}
- TARGET_CPU_DEFAULT="" \
- HEADERS="$(G_xm_include_list)" DEFINES="USED_FOR_TARGET $(G_xm_defines)" \
- ${HOST_SH} $(GNUHOSTDIST)/gcc/mkconfig.sh tconfig.h
+.include "../Makefile.tconfigh"
DPSRCS+= tconfig.h
-CLEANFILES+= tconfig.h
BUILDSYMLINKS+= ${G_UNWIND_H} unwind.h
DPSRCS+= unwind.h
diff -r d8f53f1fdcc5 -r 5eeb0232f612 external/gpl3/gcc/lib/libobjc/Makefile
--- a/external/gpl3/gcc/lib/libobjc/Makefile Wed Jun 29 01:38:27 2011 +0000
+++ b/external/gpl3/gcc/lib/libobjc/Makefile Wed Jun 29 01:56:57 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2011/06/23 11:47:12 mrg Exp $
+# $NetBSD: Makefile,v 1.3 2011/06/29 01:56:58 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -83,18 +83,14 @@
${SRCS}: tconfig.h unwind.h options.h
-tconfig.h:
- ${_MKTARGET_CREATE}
- TARGET_CPU_DEFAULT="" \
- HEADERS="$(G_xm_include_list)" DEFINES="USED_FOR_TARGET $(G_xm_defines)" \
- ${HOST_SH} $(GNUHOSTDIST)/gcc/mkconfig.sh tconfig.h
+.include "../Makefile.tconfigh"
unwind.h: ${G_UNWIND_H}
${_MKTARGET_CREATE}
rm -f ${.TARGET}
ln -s ${G_UNWIND_H} ${.TARGET}
-CLEANFILES+= cs-tconfig.h tconfig.h unwind.h
+CLEANFILES+= unwind.h
# XXX just while all platforms defs.mk are updated..
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)
Home |
Main Index |
Thread Index |
Old Index