Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint remove the remaining non-ELF code.



details:   https://anonhg.NetBSD.org/src/rev/03af155be019
branches:  trunk
changeset: 756304:03af155be019
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jul 11 12:07:31 2010 +0000

description:
remove the remaining non-ELF code.

diffstat:

 usr.bin/xlint/arch/arm/targparam.h |  12 +-----------
 usr.bin/xlint/arch/vax/targparam.h |   8 +-------
 usr.bin/xlint/lint1/Makefile       |   4 +---
 3 files changed, 3 insertions(+), 21 deletions(-)

diffs (76 lines):

diff -r fa27ac15a8ab -r 03af155be019 usr.bin/xlint/arch/arm/targparam.h
--- a/usr.bin/xlint/arch/arm/targparam.h        Sun Jul 11 11:37:24 2010 +0000
+++ b/usr.bin/xlint/arch/arm/targparam.h        Sun Jul 11 12:07:31 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targparam.h,v 1.3 2003/05/29 18:12:13 christos Exp $   */
+/*     $NetBSD: targparam.h,v 1.4 2010/07/11 12:07:31 mrg Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -43,23 +43,13 @@
  * kept in sync with the compiler!
  */     
 
-#if defined(TARGET_OBJFMT_ELF)
 #define        PTRDIFF_IS_LONG         1
 #define        SIZEOF_IS_ULONG         1
 #define        INTPTR_IS_LONG          1
-#else
-#define        PTRDIFF_IS_LONG         0
-#define        SIZEOF_IS_ULONG         0
-#define        INTPTR_IS_LONG          0
-#endif
 
 #define        FLOAT_SIZE              (4 * CHAR_BIT)
 #define        DOUBLE_SIZE             (8 * CHAR_BIT)
 #define        LDOUBLE_SIZE            (8 * CHAR_BIT)
 
-#if defined(TARGET_OBJFMT_ELF)
 /* XXX ARM ELF ABI says packed enums -- variable size! */
 #define        ENUM_SIZE               (4 * CHAR_BIT)
-#else
-#define        ENUM_SIZE               (4 * CHAR_BIT)
-#endif
diff -r fa27ac15a8ab -r 03af155be019 usr.bin/xlint/arch/vax/targparam.h
--- a/usr.bin/xlint/arch/vax/targparam.h        Sun Jul 11 11:37:24 2010 +0000
+++ b/usr.bin/xlint/arch/vax/targparam.h        Sun Jul 11 12:07:31 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targparam.h,v 1.4 2006/10/20 12:51:12 he Exp $ */
+/*     $NetBSD: targparam.h,v 1.5 2010/07/11 12:07:31 mrg Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -42,15 +42,9 @@
  * or the value of sizeof is of type unsigned long.  Note this MUST be
  * kept in sync with the compiler!
  */     
-#ifdef __ELF__
 #define        PTRDIFF_IS_LONG         1
 #define        SIZEOF_IS_ULONG         1
 #define        INTPTR_IS_LONG          1
-#else
-#define        PTRDIFF_IS_LONG         0
-#define        SIZEOF_IS_ULONG         0
-#define        INTPTR_IS_LONG          0
-#endif
 
 #define        FLOAT_SIZE              (4 * CHAR_BIT)
 #define        DOUBLE_SIZE             (8 * CHAR_BIT)
diff -r fa27ac15a8ab -r 03af155be019 usr.bin/xlint/lint1/Makefile
--- a/usr.bin/xlint/lint1/Makefile      Sun Jul 11 11:37:24 2010 +0000
+++ b/usr.bin/xlint/lint1/Makefile      Sun Jul 11 12:07:31 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.44 2010/07/06 06:00:03 mrg Exp $
+#      $NetBSD: Makefile,v 1.45 2010/07/11 12:07:32 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -12,8 +12,6 @@
 
 CPPFLAGS+=     -I${.CURDIR} -I. -DPASS=\"${PROG}.h\"
 
-CPPFLAGS+=     -DTARGET_OBJFMT_ELF
-
 LINTFLAGS=     -aehpz
 BINDIR=                /usr/libexec
 



Home | Main Index | Thread Index | Old Index