This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [patch] m68k: Fix uses of curly braces in the assembly output


Kazu Hirata <kazu@codesourcery.com> writes:

> Hi Andreas,
>
>>> My recent ASSEMBLER_DIALECT patch broke uses of curly braces in the
>>> assembly output because '{' and '}' are now special characters to
>>> control dialects.
>>
>> Does that also apply to asm statements?
>
> Apparently so as illustrated by:
>
> http://gcc.gnu.org/ml/gcc-patches/2007-10/msg00488.html
>
> It seems that I have broken backward compatibility.  If the user uses '{'
> and '}' in bitfield instructions, then his/her code won't assemble.

I'm afraid then we have to revert the ASSEMBLER_DIALECT patch, unless
there is a way to do that without breaking compatibility.  IMHO backward
compatibility is more important than convenience here.

> gcc's asm statements require the user to be familiar with gcc's internal
> to some extent, but I am not sure if we want to expose directives for
> assembly diarect.
>
> Thoughts?

There is still the option to remove the MIT syntax option and use
Motorola syntax throughout, if only the OpenBSD people could agree on
updating their assembler.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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