Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/pcc/dist/pcc resolve merge conflicts



details:   https://anonhg.NetBSD.org/src/rev/fc40c5b59c8f
branches:  trunk
changeset: 772686:fc40c5b59c8f
user:      plunky <plunky%NetBSD.org@localhost>
date:      Wed Jan 11 20:46:47 2012 +0000

description:
resolve merge conflicts

diffstat:

 external/bsd/pcc/dist/pcc/cc/Makefile.in |   6 ++--
 external/bsd/pcc/dist/pcc/cc/cc/cc.1     |  27 +++++++++++++------
 external/bsd/pcc/dist/pcc/cc/ccom/ccom.1 |  18 +++++++++---
 external/bsd/pcc/dist/pcc/cc/ccom/scan.l |  14 ++++++---
 external/bsd/pcc/dist/pcc/configure.ac   |   2 +
 external/bsd/pcc/dist/pcc/mip/common.c   |  43 ++++++++++++++++++++++---------
 6 files changed, 75 insertions(+), 35 deletions(-)

diffs (271 lines):

diff -r e117dab345eb -r fc40c5b59c8f external/bsd/pcc/dist/pcc/cc/Makefile.in
--- a/external/bsd/pcc/dist/pcc/cc/Makefile.in  Wed Jan 11 20:41:28 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/Makefile.in  Wed Jan 11 20:46:47 2012 +0000
@@ -1,12 +1,12 @@
-#      Id: Makefile.in,v 1.8 2011/06/07 13:56:05 plunky Exp    
-#      $NetBSD: Makefile.in,v 1.4 2011/09/01 12:55:29 plunky Exp $
+#      Id: Makefile.in,v 1.9 2012/01/01 16:27:25 ragge Exp     
+#      $NetBSD: Makefile.in,v 1.5 2012/01/11 20:46:47 plunky Exp $
 #
 # Makefile.in for top-level of pcc.
 #
 
 @SET_MAKE@
 
-ALL_SUBDIRS=   cc cpp ccom
+ALL_SUBDIRS=   cc cpp ccom cxxcom
 DIST_SUBDIRS=  $(ALL_SUBDIRS) driver
 
 all install clean:
diff -r e117dab345eb -r fc40c5b59c8f external/bsd/pcc/dist/pcc/cc/cc/cc.1
--- a/external/bsd/pcc/dist/pcc/cc/cc/cc.1      Wed Jan 11 20:41:28 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/cc/cc.1      Wed Jan 11 20:46:47 2012 +0000
@@ -1,5 +1,5 @@
-.\"    Id: cc.1,v 1.33 2011/08/28 11:57:45 plunky Exp  
-.\"    $NetBSD: cc.1,v 1.4 2011/09/01 12:55:29 plunky Exp $
+.\"    Id: cc.1,v 1.36 2011/11/11 09:13:14 plunky Exp  
+.\"    $NetBSD: cc.1,v 1.5 2012/01/11 20:46:47 plunky 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 September 14, 2007
+.Dd November 11, 2011
 .Dt CC 1
 .Os
 .Sh NAME
@@ -27,8 +27,7 @@
 .Op Fl cEgkLMPStvX
 .Op Fl B Ns Ar prefix
 .Op Fl D Ar macro Ns Oo = Ns Ar value Oc
-.Op Fl fPIC
-.Op Fl fpic
+.Op Fl f Ns Ar feature
 .Op Fl I Ar path
 .Op Fl include Ar file
 .Op Fl isystem Ar path
@@ -44,7 +43,10 @@
 .Op Fl shared
 .Op Fl static
 .Op Fl U Ar macro
-.Op Fl Wl Ar flags
+.Op Fl Wa Ns , Ns Ar options
+.Op Fl Wc Ns , Ns Ar options
+.Op Fl Wl Ns , Ns Ar options
+.Op Fl Wp Ns , Ns Ar options
 .Op Fl x Ar language
 .Op Ar
 .Sh DESCRIPTION
@@ -141,6 +143,8 @@
 Output is sent to standard output unless the
 .Fl o
 option is used.
+.It Fl ffreestanding
+Assume a freestanding environment.
 .It Fl fPIC
 Generate PIC code.
 .\" TODO: document about avoiding machine-specific maximum size?
@@ -281,9 +285,14 @@
 Outputs the version of
 .Nm
 and shows what commands will be run with their command line arguments.
-.It Fl Wl Ar flags
-Options for the linker.
-.\" what is ignored? llist?
+.It Fl Wa Ns , Ns Ar options
+Comma separated list of options for the assembler.
+.It Fl Wc Ns , Ns Ar options
+Comma separated list of options for the compiler.
+.It Fl Wl Ns , Ns Ar options
+Comma separated list of options for the linker.
+.It Fl Wp Ns , Ns Ar options
+Comma separated list of options for the preprocessor.
 .It Fl X
 Don't remove temporary files on exit.
 .It Fl x Ar language
diff -r e117dab345eb -r fc40c5b59c8f external/bsd/pcc/dist/pcc/cc/ccom/ccom.1
--- a/external/bsd/pcc/dist/pcc/cc/ccom/ccom.1  Wed Jan 11 20:41:28 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/ccom/ccom.1  Wed Jan 11 20:46:47 2012 +0000
@@ -1,7 +1,8 @@
-.\"    Id: ccom.1,v 1.23 2011/08/31 18:02:24 plunky Exp        
-.\"    $NetBSD: ccom.1,v 1.4 2011/09/01 12:55:29 plunky Exp $
+.\"    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 $
 .\"
 .\" Copyright (c) 2007 Jeremy C. Reed <reed%reedmedia.net@localhost>
+.\"
 .\" Permission to use, copy, modify, and/or distribute this software for any
 .\" purpose with or without fee is hereby granted, provided that the above
 .\" copyright notice and this permission notice appear in all copies.
@@ -15,7 +16,7 @@
 .\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
 .\" THIS SOFTWARE.
 .\"
-.Dd August 28, 2011
+.Dd November 14, 2011
 .Dt CCOM 1
 .Os
 .Sh NAME
@@ -143,8 +144,11 @@
 .Fl W
 options can be given, the following warnings are supported:
 .Bl -tag -width Ds
-.It Sy error
-Treat all warnings as errors.
+.It Sy error Ns Oo = Ns Ar warning Oc
+Enable
+.Ar warning ,
+and treat it as an error condition.
+If a specific warning is not given, producing any warning will cause an error.
 .It Sy implicit-function-declaration
 (TODO) Require explicit prototypes for all called functions.
 .It Sy implicit-int
@@ -166,6 +170,10 @@
 .It Sy unreachable-code
 Report statements that cannot be executed.
 .El
+.Pp
+Any of the above may be prefixed with
+.Dq no-
+in order to disable the effect.
 .\"
 .It Fl X Ar flags
 C specific debugging where
diff -r e117dab345eb -r fc40c5b59c8f external/bsd/pcc/dist/pcc/cc/ccom/scan.l
--- a/external/bsd/pcc/dist/pcc/cc/ccom/scan.l  Wed Jan 11 20:41:28 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/ccom/scan.l  Wed Jan 11 20:46:47 2012 +0000
@@ -1,6 +1,6 @@
 %{
-/*     Id: scan.l,v 1.108 2011/06/07 12:43:36 plunky Exp       */      
-/*     $NetBSD: scan.l,v 1.3 2011/09/01 12:55:29 plunky Exp $  */
+/*     Id: scan.l,v 1.109 2011/09/03 08:04:18 ragge Exp        */      
+/*     $NetBSD: scan.l,v 1.4 2012/01/11 20:46:48 plunky Exp $  */
 
 /*
  * Copyright (c) 2002 Anders Magnusson. All rights reserved.
@@ -54,7 +54,7 @@
 static NODE *wcharcon(void);
 static void control(int);
 static void pragma(void);
-int notype, parbal, inattr, parlvl, nodinit;
+int notype, parbal, inattr, parlvl, nodinit, inoso;
 static int resw(TWORD, int);
 
 #define        CPP_IDENT       2
@@ -143,8 +143,11 @@
                                        return(GCC_DESIG);
                                unput(i);
                        }
-                       if ((i = gcc_keyword(yylval.strp, &yylval.nodep)) > 0)
+                       if ((i = gcc_keyword(yylval.strp, &yylval.nodep)) > 0) {
+                               if (i == PCC_OFFSETOF)
+                                       inoso = 1;
                                return i;
+                       }
 #endif
                        if (i == 0) {
                                if (notype)
@@ -195,11 +198,12 @@
 ";"                    { notype = 0; return(';'); }
 ("{"|"<%")             { notype = 0; return('{'); }
 ("}"|"%>")             { if (rpole) notype = 1; return('}'); }
-","                    { if (parbal) notype = 0; return(','); }
+","                    { if (parbal && !inoso) notype = 0; return(','); }
 ":"                    { if (doing_init) nodinit--; return(':'); }
 "="                    { return('='); }
 "("                    { parbal++; notype = 0; return('('); }
 ")"                    {       parbal--;
+                               inoso = 0;
                                if (parbal==0) { notype = 0; }
                                if (inattr && parlvl == parbal)
                                        inattr = 0;
diff -r e117dab345eb -r fc40c5b59c8f external/bsd/pcc/dist/pcc/configure.ac
--- a/external/bsd/pcc/dist/pcc/configure.ac    Wed Jan 11 20:41:28 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/configure.ac    Wed Jan 11 20:46:47 2012 +0000
@@ -70,6 +70,7 @@
        abi=elf
        stabs=yes
        case "$target_os" in
+           *10.*) targosver=10 ;;
            *9.*) targosver=9 ;;
            *8.*) targosver=8 ;;
            *7.*) targosver=7 ;;
@@ -500,6 +501,7 @@
                cc/cc/Makefile
                cc/cpp/Makefile
                cc/ccom/Makefile
+               cc/cxxcom/Makefile
                cc/driver/Makefile
                f77/Makefile
                f77/f77/Makefile
diff -r e117dab345eb -r fc40c5b59c8f external/bsd/pcc/dist/pcc/mip/common.c
--- a/external/bsd/pcc/dist/pcc/mip/common.c    Wed Jan 11 20:41:28 2012 +0000
+++ b/external/bsd/pcc/dist/pcc/mip/common.c    Wed Jan 11 20:46:47 2012 +0000
@@ -1,5 +1,5 @@
-/*     Id: common.c,v 1.98 2011/08/20 21:54:33 plunky Exp      */      
-/*     $NetBSD: common.c,v 1.3 2011/09/01 12:55:30 plunky Exp $        */
+/*     Id: common.c,v 1.99 2011/11/14 11:52:13 plunky Exp      */      
+/*     $NetBSD: common.c,v 1.4 2012/01/11 20:46:48 plunky Exp $        */
 /*
  * Copyright (c) 2003 Anders Magnusson (ragge%ludd.luth.se@localhost).
  * All rights reserved.
@@ -179,28 +179,45 @@
 void
 Wflags(char *str)
 {
-       int i, flagval;
+       int i, isset, iserr;
 
+       /* handle -Werror specially */
+       if (strcmp("error", str) == 0) {
+               for (i = 0; i < NUMW; i++)
+                       BITSET(werrary, i);
+
+               return;
+       }
+
+       isset = 1;
        if (strncmp("no-", str, 3) == 0) {
                str += 3;
-               flagval = 0;
-       } else
-               flagval = 1;
-       if (strcmp(str, "error") == 0) {
-               /* special */
-               for (i = 0; i < NUMW; i++)
-                       BITSET(werrary, i);
-               return;
+               isset = 0;
        }
+
+       iserr = 0;
+       if (strncmp("error=", str, 6) == 0) {
+               str += 6;
+               iserr = 1;
+       }
+
        for (i = 0; i < NUMW; i++) {
                if (strcmp(flagstr[i], str) != 0)
                        continue;
-               if (flagval)
+
+               if (isset) {
+                       if (iserr)
+                               BITSET(werrary, i);
                        BITSET(warnary, i);
-               else
+               } else if (iserr) {
+                       BITCLEAR(werrary, i);
+               } else {
                        BITCLEAR(warnary, i);
+               }
+
                return;
        }
+
        fprintf(stderr, "unrecognised warning option '%s'\n", str);
 }
 



Home | Main Index | Thread Index | Old Index