Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/pcc update build framework for import of pcc-20...
details: https://anonhg.NetBSD.org/src/rev/fca01633c9dc
branches: trunk
changeset: 330868:fca01633c9dc
user: plunky <plunky%NetBSD.org@localhost>
date: Thu Jul 24 20:20:48 2014 +0000
description:
update build framework for import of pcc-20140706
diffstat:
external/bsd/pcc/Makefile.inc | 4 +-
external/bsd/pcc/include/config.h | 18 ++++--------
external/bsd/pcc/libexec/Makefile | 4 +-
external/bsd/pcc/libexec/ccom/Makefile | 6 ++--
external/bsd/pcc/libexec/cpp/Makefile | 13 ++-------
external/bsd/pcc/libexec/cxxcom/Makefile | 43 ++++++++++++++++++++++++++++++++
external/bsd/pcc/usr.bin/pcc/Makefile | 7 ++--
7 files changed, 63 insertions(+), 32 deletions(-)
diffs (221 lines):
diff -r 791e9a4a6764 -r fca01633c9dc external/bsd/pcc/Makefile.inc
--- a/external/bsd/pcc/Makefile.inc Thu Jul 24 20:12:50 2014 +0000
+++ b/external/bsd/pcc/Makefile.inc Thu Jul 24 20:20:48 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.17 2012/03/26 14:31:12 plunky Exp $
+# $NetBSD: Makefile.inc,v 1.18 2014/07/24 20:20:48 plunky Exp $
PCC_DIR:=${.PARSEDIR}
PCC_DIST=${PCC_DIR}/dist/pcc
@@ -6,7 +6,7 @@
# (these strings will be updated by the prepare-import.sh script)
PCC_VERSION=1.1.0.DEVEL
-PCC_DATESTAMP=20120325
+PCC_DATESTAMP=20140706
TARGOS = netbsd
diff -r 791e9a4a6764 -r fca01633c9dc external/bsd/pcc/include/config.h
--- a/external/bsd/pcc/include/config.h Thu Jul 24 20:12:50 2014 +0000
+++ b/external/bsd/pcc/include/config.h Thu Jul 24 20:20:48 2014 +0000
@@ -20,10 +20,7 @@
/* #undef ECOFFABI */
/* Using ELF ABI */
-#define ELFABI
-
-/* Enable STABS debugging output */
-#define STABS 1
+#define ELFABI 1
/* Define to 1 if you have the `basename' function. */
#define HAVE_BASENAME 1
@@ -31,9 +28,6 @@
/* Define to 1 if printf supports C99 size specifiers */
#define HAVE_C99_FORMAT 1
-/* Define to 1 if your compiler supports C99 variadic macros */
-#define HAVE_CPP_VARARG_MACRO_GCC 1
-
/* Define to 1 if you have the `ffs' function. */
#define HAVE_FFS 1
@@ -101,10 +95,7 @@
/* #undef HOST_BIG_ENDIAN */
/* Define if host is LITTLE endian */
-/* #define HOST_LITTLE_ENDIAN */
-
-/* lex is flex */
-#define ISFLEX 1
+/* #define HOST_LITTLE_ENDIAN 1 */
/* Define alternate standard lib directory */
/* #undef LIBDIR */
@@ -145,6 +136,9 @@
/* Define path to alternate preprocessor */
#define PREPROCESSOR "pcpp"
+/* Enable STABS debugging output */
+#define STABS 1
+
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
@@ -161,7 +155,7 @@
#define TLS 1
/* Version string */
-/* #define VERSSTR "pcc 1.1.0.DEVEL 20120325 for i386-unknown-netbsdelf6.99.3" */
+/* #define VERSSTR "pcc 1.1.0.DEVEL 20140706 for i386-unknown-netbsdelf6.99.40" */
/* Size of wide-character type in chars */
#define WCHAR_SIZE 4
diff -r 791e9a4a6764 -r fca01633c9dc external/bsd/pcc/libexec/Makefile
--- a/external/bsd/pcc/libexec/Makefile Thu Jul 24 20:12:50 2014 +0000
+++ b/external/bsd/pcc/libexec/Makefile Thu Jul 24 20:20:48 2014 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2011/05/20 16:02:23 plunky Exp $
+# $NetBSD: Makefile,v 1.7 2014/07/24 20:20:49 plunky Exp $
.include <bsd.own.mk>
-SUBDIR= mkext .WAIT ccom cpp
+SUBDIR= mkext .WAIT ccom cpp cxxcom
.include <bsd.subdir.mk>
diff -r 791e9a4a6764 -r fca01633c9dc external/bsd/pcc/libexec/ccom/Makefile
--- a/external/bsd/pcc/libexec/ccom/Makefile Thu Jul 24 20:12:50 2014 +0000
+++ b/external/bsd/pcc/libexec/ccom/Makefile Thu Jul 24 20:20:48 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2014/03/14 00:06:52 christos Exp $
+# $NetBSD: Makefile,v 1.13 2014/07/24 20:20:49 plunky Exp $
WARNS?= 2
@@ -15,7 +15,7 @@
SRCS+= optim.c pftn.c trees.c inline.c symtabs.c
SRCS+= gcc_compat.c init.c local.c code.c stabs.c builtins.c
SRCS+= match.c reader.c optim2.c regs.c local2.c order.c table.c
-SRCS+= common.c main.c external.c
+SRCS+= common.c main.c external.c unicode.c
MAN= ccom.1
@@ -28,7 +28,7 @@
CPPFLAGS+= -I${PCC_DIST}/arch/${TARGMACH}
CPPFLAGS+= -I${PCC_DIST}/cc/ccom
-COPTS.pftn.c+= -Wno-uninitialized
+COPTS.pftn.c+= ${${ACTIVE_CC} == "gcc" :? -Wno-uninitialized :}
DPSRCS= external.c
diff -r 791e9a4a6764 -r fca01633c9dc external/bsd/pcc/libexec/cpp/Makefile
--- a/external/bsd/pcc/libexec/cpp/Makefile Thu Jul 24 20:12:50 2014 +0000
+++ b/external/bsd/pcc/libexec/cpp/Makefile Thu Jul 24 20:20:48 2014 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2011/06/07 13:30:35 plunky Exp $
+# $NetBSD: Makefile,v 1.10 2014/07/24 20:20:49 plunky Exp $
.include <bsd.init.mk>
-.PATH: ${PCC_DIST}/cc/cpp \
- ${PCC_DIST}/mip
+.PATH: ${PCC_DIST}/cc/cpp
#
# We build cpp(1) as pcpp(1) to avoid confusion with GCC
@@ -28,12 +27,6 @@
# generate cpy.h
YHEADER=
-# some files include y.tab.h instead
-DPSRCS= y.tab.h
-
-y.tab.h: cpy.h
- ${HOST_LN} -f ${.ALLSRC} ${.TARGET}
-
-CLEANFILES+= pcpp.1 y.tab.h
+CLEANFILES+= pcpp.1
.include <bsd.prog.mk>
diff -r 791e9a4a6764 -r fca01633c9dc external/bsd/pcc/libexec/cxxcom/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/pcc/libexec/cxxcom/Makefile Thu Jul 24 20:20:48 2014 +0000
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2014/07/24 20:20:49 plunky Exp $
+
+WARNS?= 2
+
+.include <bsd.init.mk>
+
+.PATH: ${PCC_DIST}/cc/cxxcom \
+ ${PCC_DIST}/arch/${TARGMACH} \
+ ${PCC_DIST}/mip
+
+PROG= cxxcom
+
+SRCS= cgram.y
+SRCS+= scan.l
+SRCS+= optim.c pftn.c trees.c inline.c symtabs.c
+SRCS+= gcc_compat.c init.c local.c code.c stabs.c builtins.c
+SRCS+= match.c reader.c optim2.c regs.c local2.c order.c table.c
+SRCS+= common.c main.c external.c cxxcode.c
+
+MAN=
+
+# generate cgram.h
+YHEADER=
+
+CPPFLAGS+= -I${.OBJDIR}
+CPPFLAGS+= -I${PCC_DIST}/mip
+CPPFLAGS+= -I${PCC_DIST}/os/${TARGOS}
+CPPFLAGS+= -I${PCC_DIST}/arch/${TARGMACH}
+CPPFLAGS+= -I${PCC_DIST}/cc/cxxcom
+
+COPTS.pftn.c+= ${${ACTIVE_CC} == "gcc" :? -Wno-uninitialized :}
+
+DPSRCS= external.c
+
+MKEXTDIR!= cd ${.CURDIR}/../mkext && ${PRINTOBJDIR}
+
+external.c: ${MKEXTDIR}/mkext
+ ${_MKTARGET_CREATE}
+ ${MKEXTDIR}/mkext
+
+CLEANFILES+= external.c external.h
+
+.include <bsd.prog.mk>
diff -r 791e9a4a6764 -r fca01633c9dc external/bsd/pcc/usr.bin/pcc/Makefile
--- a/external/bsd/pcc/usr.bin/pcc/Makefile Thu Jul 24 20:12:50 2014 +0000
+++ b/external/bsd/pcc/usr.bin/pcc/Makefile Thu Jul 24 20:20:48 2014 +0000
@@ -1,23 +1,24 @@
-# $NetBSD: Makefile,v 1.8 2011/09/01 13:00:15 plunky Exp $
+# $NetBSD: Makefile,v 1.9 2014/07/24 20:20:49 plunky Exp $
WARNS?= 2
.include <bsd.init.mk>
-.PATH: ${PCC_DIST}/cc/cc
+.PATH: ${PCC_DIST}/cc/cc ${PCC_DIST}/cc/driver
#
# we build PCC cc(1) as pcc(1) to avoid conflicts with GCC
#
PROG= pcc
-SRCS= cc.c
+SRCS= cc.c strlist.o xalloc.o
MAN= pcc.1
CPPFLAGS+= -DTARGOS=\"${TARGOS}\"
CPPFLAGS+= -DTARGMACH=\"${TARGMACH}\"
CPPFLAGS+= -DLIBEXECDIR=\"/usr/libexec/\"
CPPFLAGS+= -DINCLUDEDIR=\"/usr/include/\"
+CPPFLAGS+= -I${PCC_DIST}/cc/driver
CPPFLAGS+= -I${PCC_DIST}/mip
CPPFLAGS+= -I${PCC_DIST}/os/${TARGOS}
CPPFLAGS+= -I${PCC_DIST}/arch/${TARGMACH}
Home |
Main Index |
Thread Index |
Old Index