powerpc regnames

Andreas Schwab schwab@suse.de
Fri Oct 19 09:20:00 GMT 2007


Tristan Gingold <gingold@adacore.com> writes:

> Hi,
>
> when eabispe is used, gcc (head and for a long time) generates register
> names such as in:
>         cror 4*%cr7+gt,4*%cr6+gt,4*%cr7+gt
>
> Unfortunately, gas (head and for a long time) doesn't like these register
> names:
>
> $ ../as-new -mspe -mregnames t.s
> t.s: Assembler messages:
> t.s:2: Error: bad expression
> t.s:2: Error: syntax error; found `c' but expected `,'
> t.s:2: Error: junk at end of line: `cr7+gt,4*%cr7+gt,4*%cr6+gt'
>
> The question is: who is right ?
> I suppose gcc is correct and gas has to be fixed.  I anyone confirm I will
> work on a patch.

I think this is a bug in gcc, the '%' prefixes should not be there.
AFAIK the ppc assembler has never supported a register prefix, nor does
it need one.

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."



More information about the Binutils mailing list