Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/xlint/xlint Use the C preprocessor define "__mi...
details: https://anonhg.NetBSD.org/src/rev/e692154a73b2
branches: netbsd-1-4
changeset: 468112:e692154a73b2
user: simonb <simonb%NetBSD.org@localhost>
date: Wed Apr 07 23:27:22 1999 +0000
description:
Use the C preprocessor define "__mips__" instead of "__mipse{b,l}__"
if we are running on a mipseb or mipsel platform.. This is the same
behaviour as the C compiler.
NOTE: This is only applied to the 1.4 branch. A proper long-term fix
using the equivalent of "${CC} -E" instead of lint(1) trying to
guess what to define will be coming.
diffstat:
usr.bin/xlint/xlint/xlint.c | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r af47799455ed -r e692154a73b2 usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c Wed Apr 07 23:20:42 1999 +0000
+++ b/usr.bin/xlint/xlint/xlint.c Wed Apr 07 23:27:22 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.9 1998/12/09 12:28:36 christos Exp $ */
+/* $NetBSD: xlint.c,v 1.9.2.1 1999/04/07 23:27:22 simonb Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: xlint.c,v 1.9 1998/12/09 12:28:36 christos Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.9.2.1 1999/04/07 23:27:22 simonb Exp $");
#endif
#include <sys/param.h>
@@ -342,8 +342,15 @@
#ifdef MACHINE_ARCH
if (strcmp(un.machine, MACHINE_ARCH) != 0) {
- appdef(&cppflags, MACHINE_ARCH);
- appstrg(&lcppflgs, concat2("-D", MACHINE_ARCH));
+ if (strcmp(MACHINE_ARCH, "mipseb") == 0 ||
+ strcmp(MACHINE_ARCH, "mipsel") == 0) {
+ appdef(&cppflags, "mips");
+ appstrg(&lcppflgs, concat2("-D", "mips"));
+ }
+ else {
+ appdef(&cppflags, MACHINE_ARCH);
+ appstrg(&lcppflgs, concat2("-D", MACHINE_ARCH));
+ }
}
#endif
Home |
Main Index |
Thread Index |
Old Index