Date: Sat, 13 Apr 2002 16:05:24 -0700 From: "David O'Brien" <obrien@freebsd.org> To: alpha@freebsd.org Subject: Any idea what this preprocessing was trying to do? Message-ID: <20020413160524.A43166@dragon.nuxi.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020413160524.A43166>