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]
Other format: [Raw text]

Re: m68k - Dropping the Motorola syntax


On Thursday 21 August 2003 01:53, Jamie Lokier wrote:

> No, it also appears in C extended asm statements.  I'm not quite sure
> whether this can ever happen with the m68k syntaxes, but consider this
> C source:
>
> 	int global_magic_pointer __asm__("a0");
>
> 	// Later...
> 	__asm__ ("move.l (a0)+,%0" : "=rm" (tmp) : : "a0");
>
> If the %0 is emitted with the wrong syntax, the asm statement would no
> longer compile and assemble even if GAS supports both syntaxes --
> unless GAS supports mixing syntaxes within a single statement.

as.info says it does, indeed. Isn't it nice? :-)

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html



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