From owner-freebsd-hackers Tue May 2 21:33:35 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA28605 for hackers-outgoing; Tue, 2 May 1995 21:33:35 -0700 Received: from netcom14.netcom.com (bakul@netcom14.netcom.com [192.100.81.126]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id VAA28599 for ; Tue, 2 May 1995 21:33:31 -0700 Received: from localhost by netcom14.netcom.com (8.6.12/Netcom) id VAA09831; Tue, 2 May 1995 21:32:28 -0700 Message-Id: <199505030432.VAA09831@netcom14.netcom.com> To: Richard Toren cc: hackers Subject: Re: GNU cpp bug with pthreads In-reply-to: Your message of "Tue, 02 May 95 21:35:49 EDT." Date: Tue, 02 May 95 21:32:26 -0700 From: Bakul Shah Sender: hackers-owner@FreeBSD.org Precedence: bulk > cpp, when expanding the concatenate operator '##' seems to append a > couple (3) blanks after the substitution. Here is a piece of pthreads and > an abbreviated command line to test. Line 8 is the one munged up. AFAIK, this behavior is allowed under ANSI C, since spaces around identifiers does not change C semantics in any way. Suggest you use ## for pasting colon to open. That is, replace _machdep_sys_##x:; \ with _machdep_sys_##x##:; \ Similarly, replace movl $(SYS_##x), %eax; \ with movl $(SYS_##x##), %eax; \ This'll work under gnu cpp. --bakul