From owner-freebsd-alpha Sat Apr 13 16: 6:44 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 336EE37B404 for ; Sat, 13 Apr 2002 16:06:42 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.2/8.12.2) with ESMTP id g3DN6dYm043240 for ; Sat, 13 Apr 2002 16:06:39 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.2/8.12.2/Submit) id g3DN5On9043181 for alpha@freebsd.org; Sat, 13 Apr 2002 16:05:24 -0700 (PDT) Date: Sat, 13 Apr 2002 16:05:24 -0700 From: "David O'Brien" To: alpha@freebsd.org Subject: Any idea what this preprocessing was trying to do? Message-ID: <20020413160524.A43166@dragon.nuxi.com> Reply-To: obrien@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I had to make this change to build tsunami_pci.o with Gcc 3.1 because the integrated CPP was treating "=op(" as a token vs. the three tokens it is. I really don't see why ## had to be used, as w/o the string concatination the tokens are legal ANSI-C. Index: alpha/pci/tsunami_pci.c =================================================================== RCS file: /home/ncvs/src/sys/alpha/pci/tsunami_pci.c,v retrieving revision 1.13 diff -u -r1.13 tsunami_pci.c --- alpha/pci/tsunami_pci.c 28 Feb 2002 18:18:41 -0000 1.13 +++ alpha/pci/tsunami_pci.c 7 Apr 2002 11:50:20 -0000 @@ -201,7 +201,7 @@ tsunami_check_abort(); \ return ~0; \ } \ - data = ##op##(va); \ + data = op(va); \ if (tsunami_check_abort()) \ return ~0; \ return data; \ @@ -213,7 +213,7 @@ tsunami_clear_abort(); \ if (badaddr((caddr_t)va, width)) \ return; \ - ##op##(va, data); \ + op(va, data); \ tsunami_check_abort(); \ } while (0) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message