This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Multi line string literals are deprecated considered bad


On Mon, 19 Mar 2001, Andi Kleen wrote:
>
> After thinking a bit more about the problem I think the following heuristic
> in the scanner could work reasonably:
>
> if (seen asm keyword)  asm flag = 1;
> if (asm flag) {
> 	if (seen ':')  asm flag = 0;
> 	if (seen string literal and next token is not another string literal) {
> 		asm flag = 0;
> 	}
> }
> if (seen multiline string and asm flag is not set)
> 	warn multiline is deprecated.

Err, isn't the point of deprecating (and later on removing) extensions to
make the compiler _simpler_?  Adding complexity like this seems like
entirely the wrong thing to do.


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]