Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 May 95 21:32:26 -0700
From:      Bakul Shah <bakul@netcom.com>
To:        Richard Toren <rpt@miles.sso.loral.com>
Cc:        hackers <hackers@FreeBSD.org>
Subject:   Re: GNU cpp bug with pthreads 
Message-ID:  <199505030432.VAA09831@netcom14.netcom.com>
In-Reply-To: Your message of "Tue, 02 May 95 21:35:49 EDT." <Pine.SUN.3.91.950502211904.11432A-100000@miles> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505030432.VAA09831>