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/frontend move gcc-options.c genera...



details:   https://anonhg.NetBSD.org/src/rev/6550197a43ba
branches:  trunk
changeset: 766622:6550197a43ba
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 29 02:16:52 2011 +0000

description:
move gcc-options.c generation in here.
handle i386 in here as well.

XXX: need to see about mknative-gcc handling eg, driver-i386.c

diffstat:

 external/gpl3/gcc/usr.bin/frontend/Makefile |  19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 20bc309e098e -r 6550197a43ba external/gpl3/gcc/usr.bin/frontend/Makefile
--- a/external/gpl3/gcc/usr.bin/frontend/Makefile       Wed Jun 29 02:15:34 2011 +0000
+++ b/external/gpl3/gcc/usr.bin/frontend/Makefile       Wed Jun 29 02:16:52 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2011/06/28 10:14:41 mrg Exp $
+#      $NetBSD: Makefile,v 1.3 2011/06/29 02:16:52 mrg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -7,9 +7,10 @@
 
 LIB=           frontend
 
-SRCS=          gcc.c version.c intl.c prefix.c opts-common.c
+SRCS=          gcc.c version.c intl.c prefix.c opts-common.c gcc-options.c
 
-.if ${MACHINE_ARCH} == "x86_64"
+# XXX
+.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
 SRCS+=         driver-i386.c
 .PATH:         ${DIST}/gcc/config/i386
 .endif
@@ -33,11 +34,19 @@
 
 .PATH: ${DIST}/gcc
 
-#
 # Build the specs.h file
-#
 CLEANFILES+=   specs.h
 specs.h: Makefile
        for f in cp objc; do \
                echo "#include \"$$f/lang-specs.h\""; \
        done > specs.h
+
+# Build the options files
+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}
+
+CPPFLAGS.gcc-options.c=        -DGCC_DRIVER
+gcc-options.c: optionlist
+       ${TOOL_AWK} -f ${DIST}/gcc/opt-functions.awk -f ${DIST}/gcc/optc-gen.awk \
+               -v header_name="config.h system.h coretypes.h tm.h" < optionlist > ${.TARGET}
+CLEANFILES+=   optionlist gcc-options.c



Home | Main Index | Thread Index | Old Index