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: ak at suse dot de (Andi Kleen)
- Subject: Re: Multi line string literals are deprecated considered bad
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Mon, 19 Mar 2001 08:58:47 -0800 (PST)
- Cc: carlo at alinoe dot com (Carlo Wood), ak at suse dot de (Andi Kleen), gcc at gcc dot gnu dot org
As almost everyone who actually uses inline assembly points out,
multiline strings are much cleaner, e.g. as Andi writes:
>
> asm(" mov a,b
> mov c,d
> mov e,f");
>
> I think you cannot depricate it without giving an easily writable alternative
> to the assembler users (and sorry, your proposal is not easily usable).
Agreed. New proposal: deprecate multiline strings EXCEPT in asm directives.
Since asm is a keyword, it's easy enough to have it flip a mode bit in the
lexer to disable the error or warning. Then we object to multiline
strings in all contexts except asm.