From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Elson To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: preprocessor/2219 Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-id: <20010308190600.4244.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q1/msg02117.html List-Id: The following reply was made to PR preprocessor/2219; it has been noted by GNATS. From: Jeremy Elson To: Neil Booth Cc: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Subject: Re: preprocessor/2219 Date: Thu, 08 Mar 2001 10:59:14 -0800 Neil Booth writes: >Like I said, the ## serves no purpose (apart from maybe preventing macro >expansion - this use of it here is no longer supported). Just remove >it. So - yes, I understand that in my particular code fragment, the ## is not necessary because using my macro in the form of "RDEBUG(0)" is not legal. And in my real program, I had already removed the ## even before writing to you. I was just reporting what I thought was incorrect behavior for the "good of GCC", because it seemed that GCC's treatment of the ## did not match what the documentation described. Since the preprocessor was taking what appeared to be valid code according to the documentation, and emitting valid code according to how the documentation specified, but was still giving a warning, I thought I would tell you folks about it. The linux kernel makes uuse of the same "##" construct I sent in my example, so you might get more bug reports about the same thing in the future. But, if this is correct behavior after all, then, forget the whole thing :-) Cheers, -Jer