From owner-freebsd-current Sun Mar 24 20:55:30 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA18780 for current-outgoing; Sun, 24 Mar 1996 20:55:30 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA18775 for ; Sun, 24 Mar 1996 20:55:26 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id PAA24491; Mon, 25 Mar 1996 15:51:07 +1100 Date: Mon, 25 Mar 1996 15:51:07 +1100 From: Bruce Evans Message-Id: <199603250451.PAA24491@godzilla.zeta.org.au> To: freebsd-current@FreeBSD.ORG, j@uriah.heep.sax.de Subject: Re: lint Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Here's my previous fix for the [hn]to[nh][sl] problem. I'm not sure >if it's totally correct, but it used to work. [hn]to[nh][sl] fail because they are macros that expand to unportable gcc code (with inline asm and expression-statements) and the standard version of isn't correctly ifdefed. Your fix works by hiding the macros. It should use ifdefs for `__GNUC__' instead of for `lint' (`lint' can't be used in standard headers anyway). However, there is a problem: `lint -g' doesn't actually understand gcc asm, and the asm used in the macros under discussion causes problems. The problem is limited by another one: `lint -g' doesn't define __GNUC__, so it doesn't lint the same code that gcc would compile. Bruce