Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint * Move stuff shared between lint1 and lint2 to...



details:   https://anonhg.NetBSD.org/src/rev/aac49002b7ce
branches:  trunk
changeset: 520846:aac49002b7ce
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jan 18 20:39:17 2002 +0000

description:
* Move stuff shared between lint1 and lint2 to the new common/ directory.
* Move the arch/ directory out of lint1/ into the top-level.

diffstat:

 usr.bin/xlint/Makefile.inc                   |    7 +-
 usr.bin/xlint/arch/alpha/targparam.h         |   47 +++++
 usr.bin/xlint/arch/arm/targparam.h           |   52 +++++
 usr.bin/xlint/arch/i386/targparam.h          |   47 +++++
 usr.bin/xlint/arch/m68k/targparam.h          |   47 +++++
 usr.bin/xlint/arch/mips/targparam.h          |   47 +++++
 usr.bin/xlint/arch/ns32k/targparam.h         |   47 +++++
 usr.bin/xlint/arch/powerpc/targparam.h       |   47 +++++
 usr.bin/xlint/arch/sh3/targparam.h           |   47 +++++
 usr.bin/xlint/arch/sparc/targparam.h         |   47 +++++
 usr.bin/xlint/arch/sparc64/targparam.h       |   47 +++++
 usr.bin/xlint/arch/vax/targparam.h           |   47 +++++
 usr.bin/xlint/arch/x86_64/targparam.h        |   47 +++++
 usr.bin/xlint/common/emit.c                  |  235 +++++++++++++++++++++++++++
 usr.bin/xlint/common/externs.h               |   56 ++++++
 usr.bin/xlint/common/ilp32.h                 |   47 +++++
 usr.bin/xlint/common/lint.h                  |  118 +++++++++++++
 usr.bin/xlint/common/lp64.h                  |   47 +++++
 usr.bin/xlint/common/mem.c                   |   89 ++++++++++
 usr.bin/xlint/common/param.h                 |  101 +++++++++++
 usr.bin/xlint/lint1/arch/alpha/targparam.h   |   47 -----
 usr.bin/xlint/lint1/arch/arm/targparam.h     |   52 -----
 usr.bin/xlint/lint1/arch/i386/targparam.h    |   47 -----
 usr.bin/xlint/lint1/arch/m68k/targparam.h    |   47 -----
 usr.bin/xlint/lint1/arch/mips/targparam.h    |   47 -----
 usr.bin/xlint/lint1/arch/ns32k/targparam.h   |   47 -----
 usr.bin/xlint/lint1/arch/powerpc/targparam.h |   47 -----
 usr.bin/xlint/lint1/arch/sh3/targparam.h     |   47 -----
 usr.bin/xlint/lint1/arch/sparc/targparam.h   |   47 -----
 usr.bin/xlint/lint1/arch/sparc64/targparam.h |   47 -----
 usr.bin/xlint/lint1/arch/vax/targparam.h     |   47 -----
 usr.bin/xlint/lint1/arch/x86_64/targparam.h  |   47 -----
 usr.bin/xlint/lint1/emit.c                   |  235 ---------------------------
 usr.bin/xlint/lint1/externs.h                |   56 ------
 usr.bin/xlint/lint1/ilp32.h                  |   47 -----
 usr.bin/xlint/lint1/lint.h                   |  118 -------------
 usr.bin/xlint/lint1/lp64.h                   |   47 -----
 usr.bin/xlint/lint1/mem.c                    |   89 ----------
 usr.bin/xlint/lint1/param.h                  |  101 -----------
 usr.bin/xlint/lint2/Makefile                 |    5 +-
 40 files changed, 1268 insertions(+), 1268 deletions(-)

diffs (truncated from 2707 to 300 lines):

diff -r c221fae2d3bb -r aac49002b7ce usr.bin/xlint/Makefile.inc
--- a/usr.bin/xlint/Makefile.inc        Fri Jan 18 20:14:32 2002 +0000
+++ b/usr.bin/xlint/Makefile.inc        Fri Jan 18 20:39:17 2002 +0000
@@ -1,6 +1,9 @@
-#      $NetBSD: Makefile.inc,v 1.6 2001/11/12 23:16:36 tv Exp $
+#      $NetBSD: Makefile.inc,v 1.7 2002/01/18 20:39:17 thorpej Exp $
 
-CPPFLAGS+=     -I${.CURDIR}/../lint1/arch/${MACHINE_CPU}
+.PATH:         ${.CURDIR}/../common
+
+CPPFLAGS+=     -I${.CURDIR}/../arch/${MACHINE_CPU}
+CPPFLAGS+=     -I${.CURDIR}/../common
 
 .if exists(${.CURDIR}/../../Makefile.inc)
 .include "${.CURDIR}/../../Makefile.inc"
diff -r c221fae2d3bb -r aac49002b7ce usr.bin/xlint/arch/alpha/targparam.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/xlint/arch/alpha/targparam.h      Fri Jan 18 20:39:17 2002 +0000
@@ -0,0 +1,47 @@
+/*     $NetBSD: targparam.h,v 1.1 2002/01/18 20:39:18 thorpej Exp $    */
+
+/*
+ * Copyright (c) 1994, 1995 Jochen Pohl
+ * All Rights Reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by Jochen Pohl for
+ *     The NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Machine-dependent target parameters for lint1.
+ */
+
+#include "lp64.h"
+
+/*    
+ * Should be set to 1 if the difference of two pointers is of type long
+ * or the value of sizeof is of type unsigned long.  Note this MUST be
+ * kept in sync with the compiler!
+ */     
+
+#define        PTRDIFF_IS_LONG         1
+#define        SIZEOF_IS_ULONG         1
diff -r c221fae2d3bb -r aac49002b7ce usr.bin/xlint/arch/arm/targparam.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/xlint/arch/arm/targparam.h        Fri Jan 18 20:39:17 2002 +0000
@@ -0,0 +1,52 @@
+/*     $NetBSD: targparam.h,v 1.1 2002/01/18 20:39:19 thorpej Exp $    */
+
+/*
+ * Copyright (c) 1994, 1995 Jochen Pohl
+ * All Rights Reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by Jochen Pohl for
+ *     The NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Machine-dependent target parameters for lint1.
+ */
+
+#include "ilp32.h"
+
+/*    
+ * Should be set to 1 if the difference of two pointers is of type long
+ * or the value of sizeof is of type unsigned long.  Note this MUST be
+ * kept in sync with the compiler!
+ */     
+
+#if defined(TARGET_OBJFMT_ELF)
+#define        PTRDIFF_IS_LONG         1
+#define        SIZEOF_IS_ULONG         1
+#else
+#define        PTRDIFF_IS_LONG         0
+#define        SIZEOF_IS_ULONG         0
+#endif
diff -r c221fae2d3bb -r aac49002b7ce usr.bin/xlint/arch/i386/targparam.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/xlint/arch/i386/targparam.h       Fri Jan 18 20:39:17 2002 +0000
@@ -0,0 +1,47 @@
+/*     $NetBSD: targparam.h,v 1.1 2002/01/18 20:39:19 thorpej Exp $    */
+
+/*
+ * Copyright (c) 1994, 1995 Jochen Pohl
+ * All Rights Reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by Jochen Pohl for
+ *     The NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Machine-dependent target parameters for lint1.
+ */
+
+#include "ilp32.h"
+
+/*    
+ * Should be set to 1 if the difference of two pointers is of type long
+ * or the value of sizeof is of type unsigned long.  Note this MUST be
+ * kept in sync with the compiler!
+ */     
+
+#define        PTRDIFF_IS_LONG         0
+#define        SIZEOF_IS_ULONG         0
diff -r c221fae2d3bb -r aac49002b7ce usr.bin/xlint/arch/m68k/targparam.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/xlint/arch/m68k/targparam.h       Fri Jan 18 20:39:17 2002 +0000
@@ -0,0 +1,47 @@
+/*     $NetBSD: targparam.h,v 1.1 2002/01/18 20:39:19 thorpej Exp $    */
+
+/*
+ * Copyright (c) 1994, 1995 Jochen Pohl
+ * All Rights Reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by Jochen Pohl for
+ *     The NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Machine-dependent target parameters for lint1.
+ */
+
+#include "ilp32.h"
+
+/*    
+ * Should be set to 1 if the difference of two pointers is of type long
+ * or the value of sizeof is of type unsigned long.  Note this MUST be
+ * kept in sync with the compiler!
+ */     
+
+#define        PTRDIFF_IS_LONG         0
+#define        SIZEOF_IS_ULONG         0
diff -r c221fae2d3bb -r aac49002b7ce usr.bin/xlint/arch/mips/targparam.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/xlint/arch/mips/targparam.h       Fri Jan 18 20:39:17 2002 +0000
@@ -0,0 +1,47 @@
+/*     $NetBSD: targparam.h,v 1.1 2002/01/18 20:39:19 thorpej Exp $    */
+
+/*
+ * Copyright (c) 1994, 1995 Jochen Pohl
+ * All Rights Reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by Jochen Pohl for
+ *     The NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/*
+ * Machine-dependent target parameters for lint1.
+ */
+
+#include "ilp32.h"
+
+/*    
+ * Should be set to 1 if the difference of two pointers is of type long
+ * or the value of sizeof is of type unsigned long.  Note this MUST be
+ * kept in sync with the compiler!
+ */     
+
+#define        PTRDIFF_IS_LONG         0
+#define        SIZEOF_IS_ULONG         0
diff -r c221fae2d3bb -r aac49002b7ce usr.bin/xlint/arch/ns32k/targparam.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/xlint/arch/ns32k/targparam.h      Fri Jan 18 20:39:17 2002 +0000
@@ -0,0 +1,47 @@
+/*     $NetBSD: targparam.h,v 1.1 2002/01/18 20:39:20 thorpej Exp $    */
+
+/*
+ * Copyright (c) 1994, 1995 Jochen Pohl
+ * All Rights Reserved.
+ * 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by Jochen Pohl for
+ *     The NetBSD Project.
+ * 4. The name of the author may not be used to endorse or promote products
+ *    derived from this software without specific prior written permission.
+ *



Home | Main Index | Thread Index | Old Index