summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
Diffstat (limited to 'external')
-rw-r--r--external/bsd/pcc/Makefile.inc4
-rw-r--r--external/bsd/pcc/include/config.h18
-rw-r--r--external/bsd/pcc/libexec/Makefile4
-rw-r--r--external/bsd/pcc/libexec/ccom/Makefile6
-rw-r--r--external/bsd/pcc/libexec/cpp/Makefile13
-rw-r--r--external/bsd/pcc/libexec/cxxcom/Makefile43
-rw-r--r--external/bsd/pcc/usr.bin/pcc/Makefile7
7 files changed, 63 insertions, 32 deletions
diff --git a/external/bsd/pcc/Makefile.inc b/external/bsd/pcc/Makefile.inc
index d2ec99639a8..90bb5ee0c8b 100644
--- a/external/bsd/pcc/Makefile.inc
+++ b/external/bsd/pcc/Makefile.inc
@@ -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 @@ PCC_LIBS=${PCC_DIR}/dist/pcc-libs
# (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 --git a/external/bsd/pcc/include/config.h b/external/bsd/pcc/include/config.h
index 971fc61904b..47a0c540710 100644
--- a/external/bsd/pcc/include/config.h
+++ b/external/bsd/pcc/include/config.h
@@ -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 --git a/external/bsd/pcc/libexec/Makefile b/external/bsd/pcc/libexec/Makefile
index 994e38f3993..b5e3b13963c 100644
--- a/external/bsd/pcc/libexec/Makefile
+++ b/external/bsd/pcc/libexec/Makefile
@@ -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 --git a/external/bsd/pcc/libexec/ccom/Makefile b/external/bsd/pcc/libexec/ccom/Makefile
index a93fdc7e040..fe6118afe25 100644
--- a/external/bsd/pcc/libexec/ccom/Makefile
+++ b/external/bsd/pcc/libexec/ccom/Makefile
@@ -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+= 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
+SRCS+= common.c main.c external.c unicode.c
MAN= ccom.1
@@ -28,7 +28,7 @@ CPPFLAGS+= -I${PCC_DIST}/os/${TARGOS}
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 --git a/external/bsd/pcc/libexec/cpp/Makefile b/external/bsd/pcc/libexec/cpp/Makefile
index 0f9edd5d89a..8cdb76d10a5 100644
--- a/external/bsd/pcc/libexec/cpp/Makefile
+++ b/external/bsd/pcc/libexec/cpp/Makefile
@@ -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 @@ CPPFLAGS+= -I${PCC_DIST}/cc/cpp
# 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 --git a/external/bsd/pcc/libexec/cxxcom/Makefile b/external/bsd/pcc/libexec/cxxcom/Makefile
new file mode 100644
index 00000000000..8ccacd6d26f
--- /dev/null
+++ b/external/bsd/pcc/libexec/cxxcom/Makefile
@@ -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 --git a/external/bsd/pcc/usr.bin/pcc/Makefile b/external/bsd/pcc/usr.bin/pcc/Makefile
index f9877ce9f68..9005f3230f5 100644
--- a/external/bsd/pcc/usr.bin/pcc/Makefile
+++ b/external/bsd/pcc/usr.bin/pcc/Makefile
@@ -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}