Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/external/bsd/pcc Pull up following revision(s) (requested...
details: https://anonhg.NetBSD.org/src/rev/872741e654d2
branches: netbsd-6
changeset: 773977:872741e654d2
user: riz <riz%NetBSD.org@localhost>
date: Tue Apr 03 16:36:20 2012 +0000
description:
Pull up following revision(s) (requested by plunky in ticket #157):
external/bsd/pcc/Makefile.inc
external/bsd/pcc/dist/pcc/DATESTAMP
external/bsd/pcc/dist/pcc/arch/amd64/local.c
external/bsd/pcc/dist/pcc/arch/i386/local2.c
external/bsd/pcc/dist/pcc/arch/vax/local2.c
external/bsd/pcc/dist/pcc/cc/cc/Makefile.in
external/bsd/pcc/dist/pcc/cc/ccom/Makefile.in
external/bsd/pcc/dist/pcc/cc/ccom/builtins.c
external/bsd/pcc/dist/pcc/cc/ccom/ccom.1
external/bsd/pcc/dist/pcc/cc/ccom/cgram.y
external/bsd/pcc/dist/pcc/cc/ccom/gcc_compat.c
external/bsd/pcc/dist/pcc/cc/ccom/init.c
external/bsd/pcc/dist/pcc/cc/ccom/inline.c
external/bsd/pcc/dist/pcc/cc/ccom/main.c
external/bsd/pcc/dist/pcc/cc/ccom/optim.c
external/bsd/pcc/dist/pcc/cc/ccom/pass1.h
external/bsd/pcc/dist/pcc/cc/ccom/pftn.c
external/bsd/pcc/dist/pcc/cc/ccom/stabs.c
external/bsd/pcc/dist/pcc/cc/ccom/trees.c
external/bsd/pcc/dist/pcc/cc/cpp/Makefile.in
external/bsd/pcc/dist/pcc/cc/cxxcom/Makefile.in
external/bsd/pcc/dist/pcc/cc/cxxcom/builtins.c
external/bsd/pcc/dist/pcc/cc/cxxcom/gcc_compat.c
external/bsd/pcc/dist/pcc/cc/cxxcom/init.c
external/bsd/pcc/dist/pcc/cc/cxxcom/inline.c
external/bsd/pcc/dist/pcc/cc/cxxcom/main.c
external/bsd/pcc/dist/pcc/cc/cxxcom/optim.c
external/bsd/pcc/dist/pcc/cc/cxxcom/pass1.h
external/bsd/pcc/dist/pcc/cc/cxxcom/pftn.c
external/bsd/pcc/dist/pcc/cc/cxxcom/stabs.c
external/bsd/pcc/dist/pcc/cc/cxxcom/trees.c
external/bsd/pcc/dist/pcc/cc/driver/Makefile.in
external/bsd/pcc/dist/pcc/f77/f77/Makefile.in
external/bsd/pcc/dist/pcc/f77/fcom/Makefile.in
external/bsd/pcc/dist/pcc/f77/fcom/main.c
external/bsd/pcc/dist/pcc/mip/common.c
external/bsd/pcc/dist/pcc/mip/manifest.h
external/bsd/pcc/dist/pcc/mip/match.c
external/bsd/pcc/dist/pcc/mip/pass2.h
external/bsd/pcc/dist/pcc/mip/reader.c
external/bsd/pcc/dist/pcc/mip/regs.c
external/bsd/pcc/include/config.h
Update to pcc-20120325
The full changelog is at
http://pcc.ludd.ltu.se/fisheye/changelog/~date=2012-03-25T06%3A00%3A00/pcc
and includes some bug and documentation fixes.
The siginifcant improvements were that the __returns_twice__ attribute is
now accepted, and a problem parsing attributes on parameters of function
prototypes was fixed.
(both of these issues caused problems compiling with the NetBSD headers)
diffstat:
external/bsd/pcc/Makefile.inc | 4 +-
external/bsd/pcc/dist/pcc/DATESTAMP | 2 +-
external/bsd/pcc/dist/pcc/arch/amd64/local.c | 17 +-
external/bsd/pcc/dist/pcc/arch/i386/local2.c | 7 +-
external/bsd/pcc/dist/pcc/arch/vax/local2.c | 13 +-
external/bsd/pcc/dist/pcc/cc/cc/Makefile.in | 7 +-
external/bsd/pcc/dist/pcc/cc/ccom/Makefile.in | 7 +-
external/bsd/pcc/dist/pcc/cc/ccom/builtins.c | 6 +-
external/bsd/pcc/dist/pcc/cc/ccom/ccom.1 | 217 ++++++++++++++++++++--
external/bsd/pcc/dist/pcc/cc/ccom/cgram.y | 23 +-
external/bsd/pcc/dist/pcc/cc/ccom/gcc_compat.c | 7 +-
external/bsd/pcc/dist/pcc/cc/ccom/init.c | 6 +-
external/bsd/pcc/dist/pcc/cc/ccom/inline.c | 6 +-
external/bsd/pcc/dist/pcc/cc/ccom/main.c | 147 +++++++--------
external/bsd/pcc/dist/pcc/cc/ccom/optim.c | 10 +-
external/bsd/pcc/dist/pcc/cc/ccom/pass1.h | 9 +-
external/bsd/pcc/dist/pcc/cc/ccom/pftn.c | 28 ++-
external/bsd/pcc/dist/pcc/cc/ccom/stabs.c | 31 +-
external/bsd/pcc/dist/pcc/cc/ccom/trees.c | 10 +-
external/bsd/pcc/dist/pcc/cc/cpp/Makefile.in | 7 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/Makefile.in | 7 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/builtins.c | 6 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/gcc_compat.c | 7 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/init.c | 6 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/inline.c | 6 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/main.c | 146 +++++++--------
external/bsd/pcc/dist/pcc/cc/cxxcom/optim.c | 10 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/pass1.h | 9 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/pftn.c | 14 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/stabs.c | 31 +-
external/bsd/pcc/dist/pcc/cc/cxxcom/trees.c | 8 +-
external/bsd/pcc/dist/pcc/cc/driver/Makefile.in | 5 +-
external/bsd/pcc/dist/pcc/f77/f77/Makefile.in | 5 +-
external/bsd/pcc/dist/pcc/f77/fcom/Makefile.in | 5 +-
external/bsd/pcc/dist/pcc/f77/fcom/main.c | 62 +++--
external/bsd/pcc/dist/pcc/mip/common.c | 10 +-
external/bsd/pcc/dist/pcc/mip/manifest.h | 9 +-
external/bsd/pcc/dist/pcc/mip/match.c | 6 +-
external/bsd/pcc/dist/pcc/mip/pass2.h | 12 +-
external/bsd/pcc/dist/pcc/mip/reader.c | 9 +-
external/bsd/pcc/dist/pcc/mip/regs.c | 57 ++---
external/bsd/pcc/include/config.h | 2 +-
42 files changed, 578 insertions(+), 418 deletions(-)
diffs (truncated from 2140 to 300 lines):
diff -r 7a7a4b7028e9 -r 872741e654d2 external/bsd/pcc/Makefile.inc
--- a/external/bsd/pcc/Makefile.inc Tue Apr 03 16:14:02 2012 +0000
+++ b/external/bsd/pcc/Makefile.inc Tue Apr 03 16:36:20 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.16 2012/01/11 20:36:26 plunky Exp $
+# $NetBSD: Makefile.inc,v 1.16.2.1 2012/04/03 16:36:20 riz 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=20120105
+PCC_DATESTAMP=20120325
TARGOS = netbsd
diff -r 7a7a4b7028e9 -r 872741e654d2 external/bsd/pcc/dist/pcc/DATESTAMP
--- a/external/bsd/pcc/dist/pcc/DATESTAMP Tue Apr 03 16:14:02 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/DATESTAMP Tue Apr 03 16:36:20 2012 +0000
@@ -1,1 +1,1 @@
-20120105
+20120325
diff -r 7a7a4b7028e9 -r 872741e654d2 external/bsd/pcc/dist/pcc/arch/amd64/local.c
--- a/external/bsd/pcc/dist/pcc/arch/amd64/local.c Tue Apr 03 16:14:02 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/arch/amd64/local.c Tue Apr 03 16:36:20 2012 +0000
@@ -1,5 +1,5 @@
-/* Id: local.c,v 1.65 2011/08/21 09:32:46 ragge Exp */
-/* $NetBSD: local.c,v 1.1.1.3 2011/09/01 12:46:27 plunky Exp $ */
+/* Id: local.c,v 1.66 2012/03/23 17:03:09 ragge Exp */
+/* $NetBSD: local.c,v 1.1.1.3.4.1 2012/04/03 16:36:21 riz Exp $ */
/*
* Copyright (c) 2008 Michael Shalayeff
* Copyright (c) 2003 Anders Magnusson (ragge%ludd.luth.se@localhost).
@@ -538,8 +538,17 @@
if (p->n_op != FCON)
return;
- if (FLOAT_ISZERO(p->n_dcon))
- return;
+#ifdef mach_amd64
+ {
+ /* Do not loose negative zeros */
+ long long *llp = (long long *)(&p->n_dcon);
+ short *ssp = (short *)&llp[1];
+ if (*llp == 0 && *ssp == 0)
+ return;
+ }
+#else
+#error fixme
+#endif
/* XXX should let float constants follow */
sp = IALLOC(sizeof(struct symtab));
diff -r 7a7a4b7028e9 -r 872741e654d2 external/bsd/pcc/dist/pcc/arch/i386/local2.c
--- a/external/bsd/pcc/dist/pcc/arch/i386/local2.c Tue Apr 03 16:14:02 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/arch/i386/local2.c Tue Apr 03 16:36:20 2012 +0000
@@ -1,5 +1,5 @@
-/* Id: local2.c,v 1.165 2011/12/06 05:58:54 gmcgarry Exp */
-/* $NetBSD: local2.c,v 1.1.1.5 2012/01/11 20:32:48 plunky Exp $ */
+/* Id: local2.c,v 1.166 2012/03/22 18:04:41 plunky Exp */
+/* $NetBSD: local2.c,v 1.1.1.5.2.1 2012/04/03 16:36:21 riz Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge%ludd.luth.se@localhost).
* All rights reserved.
@@ -1270,7 +1270,8 @@
TWORD t;
char *w;
int reg;
- int c, cw, v;
+ int c, cw;
+ CONSZ v;
cw = xasmcode(p->n_name);
if (cw & (XASMASG|XASMINOUT))
diff -r 7a7a4b7028e9 -r 872741e654d2 external/bsd/pcc/dist/pcc/arch/vax/local2.c
--- a/external/bsd/pcc/dist/pcc/arch/vax/local2.c Tue Apr 03 16:14:02 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/arch/vax/local2.c Tue Apr 03 16:36:20 2012 +0000
@@ -1,5 +1,5 @@
-/* Id: local2.c,v 1.27 2011/07/30 08:09:29 ragge Exp */
-/* $NetBSD: local2.c,v 1.1.1.4 2011/09/01 12:46:51 plunky Exp $ */
+/* Id: local2.c,v 1.28 2012/03/22 18:56:17 plunky Exp */
+/* $NetBSD: local2.c,v 1.1.1.4.4.1 2012/04/03 16:36:21 riz Exp $ */
/*
* Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
*
@@ -506,13 +506,12 @@
case 'F': /* register type of right operand */
{
register NODE *n;
- extern int xdebug;
register int ty;
n = getlr( p, 'R' );
ty = n->n_type;
- if (xdebug) printf("->%d<-", ty);
+ if (x2debug) printf("->%d<-", ty);
if ( ty==DOUBLE) printf("d");
else if ( ty==FLOAT ) printf("f");
@@ -540,10 +539,9 @@
case 'R': /* type of right operand */
{
register NODE *n;
- extern int xdebug;
n = getlr ( p, c);
- if (xdebug) printf("->%d<-", n->n_type);
+ if (x2debug) printf("->%d<-", n->n_type);
prtype(n);
return;
@@ -794,9 +792,8 @@
int
shumul( p, shape ) register NODE *p; int shape; {
register int o;
- extern int xdebug;
- if (xdebug) {
+ if (x2debug) {
printf("\nshumul:op=%d,lop=%d,rop=%d", p->n_op, p->n_left->n_op, p->n_right->n_op);
printf(" prname=%s,plty=%d, prlval=%lld\n", p->n_right->n_name, p->n_left->n_type, p->n_right->n_lval);
}
diff -r 7a7a4b7028e9 -r 872741e654d2 external/bsd/pcc/dist/pcc/cc/cc/Makefile.in
--- a/external/bsd/pcc/dist/pcc/cc/cc/Makefile.in Tue Apr 03 16:14:02 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/cc/Makefile.in Tue Apr 03 16:36:20 2012 +0000
@@ -1,5 +1,5 @@
-# Id: Makefile.in,v 1.28 2011/08/20 21:40:37 plunky Exp
-# $NetBSD: Makefile.in,v 1.1.1.3 2011/09/01 12:46:52 plunky Exp $
+# Id: Makefile.in,v 1.29 2012/03/15 09:22:12 plunky Exp
+# $NetBSD: Makefile.in,v 1.1.1.3.4.1 2012/04/03 16:36:21 riz Exp $
#
# Makefile.in for the cc part of pcc.
#
@@ -35,6 +35,7 @@
LDFLAGS = @LDFLAGS@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
OBJS=cc.o compat.o
DEST=@BINPREFIX@pcc$(EXEEXT)
@@ -61,7 +62,7 @@
echo strip ${DESTDIR}${bindir}/${DEST} ; \
fi
test -z "${DESTDIR}$(mandir)/man1" || mkdir -p "${DESTDIR}$(mandir)/man1"
- ${INSTALL} $(srcdir)/cc.1 ${DESTDIR}${mandir}/man1/${DEST}.1
+ ${INSTALL_DATA} $(srcdir)/cc.1 ${DESTDIR}${mandir}/man1/${DEST}.1
test -z "${DESTDIR}$(PCCINCDIR)" || mkdir -p "${DESTDIR}$(PCCINCDIR)"
test -z "${DESTDIR}$(PCCLIBDIR)" || mkdir -p "${DESTDIR}$(PCCLIBDIR)"
diff -r 7a7a4b7028e9 -r 872741e654d2 external/bsd/pcc/dist/pcc/cc/ccom/Makefile.in
--- a/external/bsd/pcc/dist/pcc/cc/ccom/Makefile.in Tue Apr 03 16:14:02 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/ccom/Makefile.in Tue Apr 03 16:36:20 2012 +0000
@@ -1,5 +1,5 @@
-# Id: Makefile.in,v 1.41 2011/06/08 09:14:25 plunky Exp
-# $NetBSD: Makefile.in,v 1.1.1.4 2011/09/01 12:46:56 plunky Exp $
+# Id: Makefile.in,v 1.42 2012/03/15 09:22:12 plunky Exp
+# $NetBSD: Makefile.in,v 1.1.1.4.4.1 2012/04/03 16:36:21 riz Exp $
#
# Makefile.in for ccom
#
@@ -34,6 +34,7 @@
strip = @strip@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
MDIR=$(top_srcdir)/arch/$(TARGMACH)
MIPDIR=$(top_srcdir)/mip
@@ -176,7 +177,7 @@
echo strip $(DESTDIR)$(libexecdir)/$(DEST) ; \
fi
test -z "$(DESTDIR)$(mandir)/man1" || mkdir -p "$(DESTDIR)$(mandir)/man1"
- $(INSTALL) $(srcdir)/ccom.1 $(DESTDIR)$(mandir)/man1/$(DEST).1
+ $(INSTALL_DATA) $(srcdir)/ccom.1 $(DESTDIR)$(mandir)/man1/$(DEST).1
clean:
rm -f $(DEST) $(OBJS) $(MKEXT) $(LOBJS) $(LEX_OUTPUT_ROOT).c \
diff -r 7a7a4b7028e9 -r 872741e654d2 external/bsd/pcc/dist/pcc/cc/ccom/builtins.c
--- a/external/bsd/pcc/dist/pcc/cc/ccom/builtins.c Tue Apr 03 16:14:02 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/ccom/builtins.c Tue Apr 03 16:36:20 2012 +0000
@@ -1,5 +1,5 @@
-/* Id: builtins.c,v 1.34 2011/10/24 08:53:18 plunky Exp */
-/* $NetBSD: builtins.c,v 1.1.1.3 2012/01/11 20:33:08 plunky Exp $ */
+/* Id: builtins.c,v 1.35 2012/03/22 18:04:41 plunky Exp */
+/* $NetBSD: builtins.c,v 1.1.1.3.2.1 2012/04/03 16:36:21 riz Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge%ludd.luth.se@localhost).
* All rights reserved.
@@ -306,7 +306,7 @@
static NODE *
builtin_object_size(NODE *f, NODE *a, TWORD rt)
{
- int v = icons(a->n_right);
+ CONSZ v = icons(a->n_right);
if (v < 0 || v > 3)
uerror("arg2 must be between 0 and 3");
diff -r 7a7a4b7028e9 -r 872741e654d2 external/bsd/pcc/dist/pcc/cc/ccom/ccom.1
--- a/external/bsd/pcc/dist/pcc/cc/ccom/ccom.1 Tue Apr 03 16:14:02 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/ccom/ccom.1 Tue Apr 03 16:36:20 2012 +0000
@@ -1,5 +1,5 @@
-.\" Id: ccom.1,v 1.24 2011/11/14 16:46:17 plunky Exp
-.\" $NetBSD: ccom.1,v 1.5 2012/01/11 20:46:48 plunky Exp $
+.\" Id: ccom.1,v 1.27 2012/03/22 21:09:41 plunky Exp
+.\" $NetBSD: ccom.1,v 1.5.2.1 2012/04/03 16:36:21 riz Exp $
.\"
.\" Copyright (c) 2007 Jeremy C. Reed <reed%reedmedia.net@localhost>
.\"
@@ -16,7 +16,7 @@
.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
.\" THIS SOFTWARE.
.\"
-.Dd November 14, 2011
+.Dd March 22, 2012
.Dt CCOM 1
.Os
.Sh NAME
@@ -89,40 +89,40 @@
.Bl -tag -width PowerPC
.It AMD64
.It ARM
-.Sy little-endian Ns ,
-.Sy big-endian Ns ,
-.Sy fpe=fpa Ns ,
-.Sy fpe=vpf Ns ,
-.Sy soft-float Ns ,
-.Sy arch=armv1 Ns ,
-.Sy arch=armv2 Ns ,
-.Sy arch=armv2a Ns ,
-.Sy arch=armv3 Ns ,
-.Sy arch=armv4 Ns ,
-.Sy arch=armv4t Ns ,
-.Sy arch=armv4tej Ns ,
-.Sy arch=armv5 Ns ,
-.Sy arch=armv5te Ns ,
-.Sy arch=armv5tej Ns ,
-.Sy arch=armv6 Ns ,
-.Sy arch=armv6t2 Ns ,
-.Sy arch=armv6kz Ns ,
+.Sy little-endian ,
+.Sy big-endian ,
+.Sy fpe=fpa ,
+.Sy fpe=vpf ,
+.Sy soft-float ,
+.Sy arch=armv1 ,
+.Sy arch=armv2 ,
+.Sy arch=armv2a ,
+.Sy arch=armv3 ,
+.Sy arch=armv4 ,
+.Sy arch=armv4t ,
+.Sy arch=armv4tej ,
+.Sy arch=armv5 ,
+.Sy arch=armv5te ,
+.Sy arch=armv5tej ,
+.Sy arch=armv6 ,
+.Sy arch=armv6t2 ,
+.Sy arch=armv6kz ,
.Sy arch=armv6k No \*(Am
-.Sy arch=armv7 Ns .
+.Sy arch=armv7 .
.It HPPA
.It i386
.It M16C
.It MIPS
.Sy little-endian No \*(Am
-.Sy big-endian Ns .
+.Sy big-endian .
.It NOVA
.It PDP-10
.It PDP-11
.It PowerPC
-.Sy little-endian Ns ,
-.Sy big-endian Ns ,
+.Sy little-endian ,
+.Sy big-endian ,
.Sy soft-float No \*(Am
-.Sy hard-float Ns .
+.Sy hard-float .
.It Sparc64
.It VAX
.El
@@ -222,7 +222,7 @@
Delete redundant jumps and dead code.
.It Sy gnu89
.It Sy gnu99
-Use gcc semantics rather than C99 for some things.
+Use GNU C semantics rather than C99 for some things.
Currently only inline.
.It Sy inline
Replace calls to functions marked with an inline specifier with a copy
@@ -254,6 +254,8 @@
Trees when entering pass2
.It Sy f
Instruction matcher, may provide much output
+.It Sy g
+Print flow graphs
Home |
Main Index |
Thread Index |
Old Index