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 machinery for pcc-20160208
details: https://anonhg.NetBSD.org/src/rev/181bea3c23a3
branches: trunk
changeset: 343515:181bea3c23a3
user: plunky <plunky%NetBSD.org@localhost>
date: Tue Feb 09 20:40:45 2016 +0000
description:
update build machinery for pcc-20160208
diffstat:
external/bsd/pcc/Makefile.inc | 9 ++++---
external/bsd/pcc/include/config.h | 36 ++++++++++++++++++++++++--------
external/bsd/pcc/libexec/ccom/Makefile | 8 +++---
external/bsd/pcc/libexec/cpp/Makefile | 8 ++----
external/bsd/pcc/libexec/cxxcom/Makefile | 5 +--
external/bsd/pcc/usr.bin/pcc/Makefile | 6 ++++-
6 files changed, 46 insertions(+), 26 deletions(-)
diffs (231 lines):
diff -r 66d1f6f2c62c -r 181bea3c23a3 external/bsd/pcc/Makefile.inc
--- a/external/bsd/pcc/Makefile.inc Tue Feb 09 20:37:32 2016 +0000
+++ b/external/bsd/pcc/Makefile.inc Tue Feb 09 20:40:45 2016 +0000
@@ -1,12 +1,12 @@
-# $NetBSD: Makefile.inc,v 1.18 2014/07/24 20:20:48 plunky Exp $
+# $NetBSD: Makefile.inc,v 1.19 2016/02/09 20:40:45 plunky Exp $
PCC_DIR:=${.PARSEDIR}
PCC_DIST=${PCC_DIR}/dist/pcc
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=20140706
+PCC_VERSION=1.2.0.DEVEL
+PCC_DATESTAMP=20160208
TARGOS = netbsd
@@ -22,10 +22,11 @@
ERROR!= echo "ERROR: ${TARGMACH} not yet supported - write code!" >&2;echo
.endif
-VERSSTR="pcc ${PCC_VERSION} ${PCC_DATESTAMP} for ${TARGOS}-${TARGMACH}"
+VERSSTR="pcc ${PCC_VERSION} ${PCC_DATESTAMP} for ${TARGMACH}--${TARGOS}"
CPPFLAGS+= -DGCC_COMPAT
CPPFLAGS+= -DPCC_DEBUG
+CPPFLAGS+= -D_ISOC99_SOURCE
CPPFLAGS+= -DVERSSTR=${VERSSTR:Q}
CPPFLAGS+= -Dos_${TARGOS}
CPPFLAGS+= -Dmach_${TARGMACH}
diff -r 66d1f6f2c62c -r 181bea3c23a3 external/bsd/pcc/include/config.h
--- a/external/bsd/pcc/include/config.h Tue Feb 09 20:37:32 2016 +0000
+++ b/external/bsd/pcc/include/config.h Tue Feb 09 20:40:45 2016 +0000
@@ -1,6 +1,9 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
/* Using a.out ABI */
/* #undef AOUTABI */
@@ -22,9 +25,6 @@
/* Using ELF ABI */
#define ELFABI 1
-/* Define to 1 if you have the `basename' function. */
-#define HAVE_BASENAME 1
-
/* Define to 1 if printf supports C99 size specifiers */
#define HAVE_C99_FORMAT 1
@@ -106,26 +106,32 @@
/* Using Mach-O ABI */
/* #undef MACHOABI */
+/* Define target Multi-Arch path */
+/* #undef MULTIARCH_PATH */
+
/* Define to the address where bug reports for this package should be sent. */
-#define PACKAGE_BUGREPORT "<pcc-list%ludd.ltu.se@localhost>"
+#define PACKAGE_BUGREPORT "pcc%lists.ludd.ltu.se@localhost"
/* Define to the full name of this package. */
-#define PACKAGE_NAME "pcc"
+#define PACKAGE_NAME "Portable C Compiler"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "pcc 1.1.0.DEVEL"
+#define PACKAGE_STRING "Portable C Compiler 1.2.0.DEVEL"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "pcc"
+/* Define to the home page for this package. */
+#define PACKAGE_URL "http://pcc.ludd.ltu.se/"
+
/* Define to the version of this package. */
-#define PACKAGE_VERSION "1.1.0.DEVEL"
+#define PACKAGE_VERSION "1.2.0.DEVEL"
/* Major version no */
#define PCC_MAJOR 1
/* Minor version no */
-#define PCC_MINOR 1
+#define PCC_MINOR 2
/* Minor minor version no */
#define PCC_MINORMINOR 0
@@ -155,7 +161,7 @@
#define TLS 1
/* Version string */
-/* #define VERSSTR "pcc 1.1.0.DEVEL 20140706 for i386-unknown-netbsdelf6.99.40" */
+/* #define VERSSTR "Portable C Compiler 1.2.0.DEVEL 20160208 for i386-unknown-netbsdelf7.99.25" */
/* Size of wide-character type in chars */
#define WCHAR_SIZE 4
@@ -163,6 +169,18 @@
/* Type to use for wide characters */
#define WCHAR_TYPE INT
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+# define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+/* # undef WORDS_BIGENDIAN */
+# endif
+#endif
+
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
`char[]'. */
#define YYTEXT_POINTER 1
diff -r 66d1f6f2c62c -r 181bea3c23a3 external/bsd/pcc/libexec/ccom/Makefile
--- a/external/bsd/pcc/libexec/ccom/Makefile Tue Feb 09 20:37:32 2016 +0000
+++ b/external/bsd/pcc/libexec/ccom/Makefile Tue Feb 09 20:40:45 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2014/07/24 20:20:49 plunky Exp $
+# $NetBSD: Makefile,v 1.14 2016/02/09 20:40:45 plunky Exp $
WARNS?= 2
@@ -10,14 +10,14 @@
PROG= ccom
-SRCS= cgram.y
+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 unicode.c
-MAN= ccom.1
+MAN= ccom.1
# generate cgram.h
YHEADER=
@@ -28,7 +28,7 @@
CPPFLAGS+= -I${PCC_DIST}/arch/${TARGMACH}
CPPFLAGS+= -I${PCC_DIST}/cc/ccom
-COPTS.pftn.c+= ${${ACTIVE_CC} == "gcc" :? -Wno-uninitialized :}
+COPTS+= ${${ACTIVE_CC} == "gcc" :? -Wno-error=stack-protector :}
DPSRCS= external.c
diff -r 66d1f6f2c62c -r 181bea3c23a3 external/bsd/pcc/libexec/cpp/Makefile
--- a/external/bsd/pcc/libexec/cpp/Makefile Tue Feb 09 20:37:32 2016 +0000
+++ b/external/bsd/pcc/libexec/cpp/Makefile Tue Feb 09 20:40:45 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2014/07/24 20:20:49 plunky Exp $
+# $NetBSD: Makefile,v 1.11 2016/02/09 20:40:45 plunky Exp $
.include <bsd.init.mk>
@@ -10,8 +10,7 @@
PROG= pcpp
-SRCS= cpy.y
-SRCS+= cpp.c token.c
+SRCS+= cpc.c cpp.c token.c
MAN= pcpp.1
@@ -24,8 +23,7 @@
CPPFLAGS+= -I${PCC_DIST}/mip
CPPFLAGS+= -I${PCC_DIST}/cc/cpp
-# generate cpy.h
-YHEADER=
+COPTS.cpp.c+= ${${ACTIVE_CC} == "gcc" :? -Wno-error=cast-qual :}
CLEANFILES+= pcpp.1
diff -r 66d1f6f2c62c -r 181bea3c23a3 external/bsd/pcc/libexec/cxxcom/Makefile
--- a/external/bsd/pcc/libexec/cxxcom/Makefile Tue Feb 09 20:37:32 2016 +0000
+++ b/external/bsd/pcc/libexec/cxxcom/Makefile Tue Feb 09 20:40:45 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2014/07/24 20:20:49 plunky Exp $
+# $NetBSD: Makefile,v 1.2 2016/02/09 20:40:45 plunky Exp $
WARNS?= 2
@@ -22,14 +22,13 @@
# generate cgram.h
YHEADER=
+CPPFLAGS+= -DLANG_CXX
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}
diff -r 66d1f6f2c62c -r 181bea3c23a3 external/bsd/pcc/usr.bin/pcc/Makefile
--- a/external/bsd/pcc/usr.bin/pcc/Makefile Tue Feb 09 20:37:32 2016 +0000
+++ b/external/bsd/pcc/usr.bin/pcc/Makefile Tue Feb 09 20:40:45 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2014/07/24 20:55:45 plunky Exp $
+# $NetBSD: Makefile,v 1.11 2016/02/09 20:40:46 plunky Exp $
WARNS?= 2
@@ -29,7 +29,11 @@
-e "s,Xr cpp,Xr pcpp," \
${.ALLSRC} > ${.TARGET}
+CPPFLAGS+= -DCPPROGNAME=\"pcpp\"
+SYMLINKS+= ${BINDIR}/pcc /usr/bin/pcpp
+
.if ${MKCXX} != "no"
+CPPFLAGS+= -DCXXPROGNAME=\"p++\"
SYMLINKS+= ${BINDIR}/pcc /usr/bin/p++
.endif
Home |
Main Index |
Thread Index |
Old Index