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: Carlo Wood <carlo at alinoe dot com>
- Date: Mon, 19 Mar 2001 15:54:15 +0100
- Cc: gcc at gcc dot gnu dot org
- References: <20010319113655.A14200@gruyere.muc.suse.de>
This was discussed on this list before and several suggestions
for inline assembly have been made. The one I like best myself
is:
asm(" mov a,b"
"\n mov c,d"
"\nlabel: mov e,f");
Excuse me for not knowing assembly, but you get the idea ;).
On Mon, Mar 19, 2001 at 11:36:55AM +0100, Andi Kleen wrote:
> Hallo,
>
> Mainline gcc spews out this warning now. Could somebody please explain what
> replaces the multi-line string literals?
>
> That new warning is a big drawback for gcc inline assembly facility,
> because there is no non ugly way now to write inline assembly statements
> with multiple instructions, without adding strange constructs to every
> assembly line, obscuring the assembly code.
>
> The warning is very inconvenient for me. I think the multi line literals
> could be only deprecated when there is a workable replacement, like a new
> inline assembly syntax that doesn't depend on strings anymore.
>
> -Andi (not very pleased)
--
Carlo Wood <carlo@alinoe.com>