This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/19475] [3.3/3.4/4.0/4.1 Regression] missing whitespace after macro name in C90 or C++
- From: "zack at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Apr 2005 17:05:38 -0000
- Subject: [Bug preprocessor/19475] [3.3/3.4/4.0/4.1 Regression] missing whitespace after macro name in C90 or C++
- References: <20050116235610.19475.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From zack at codesourcery dot com 2005-04-05 17:05 -------
Subject: Re: [PATCH] Fix PR preprocessor/19475
Jakub Jelinek <jakub@redhat.com> writes:
> On Tue, Apr 05, 2005 at 09:49:19AM -0700, Zack Weinberg wrote:
>> > This patch fixes PR preprocessor/19475 by issuing just warning, not pedwarn,
>> > for < ISO C99 if there is no whitespace between macro definition and
>> > replacement, but replacement starts with a basic character set character.
>> > Ok to commit?
>>
>> OK except please remove the <?, >?, <?=, >?= testcases as those tokens
>> are probably going to be removed in the near future.
>
> I know, but that IMHO shouldn't matter for the testcase.
> #define a<?
> should be still treated like
> #define a <?
> in C90 (with a warning), no matter whether <? is a cpp token or 2 tokens.
Sure, but it's redundant with <= and so on.
zw
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19475