This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Multi line string literals are deprecated considered bad
- To: Andi Kleen <ak at suse dot de>
- Subject: Re: Multi line string literals are deprecated considered bad
- From: Bernd Schmidt <bernds at redhat dot com>
- Date: Tue, 20 Mar 2001 10:50:30 +0000 (GMT)
- Cc: Joe Buck <jbuck at racerx dot synopsys dot com>,Carlo Wood <carlo at alinoe dot com>, <gcc at gcc dot gnu dot org>
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