[Bug target/71216] [4.9/5/6/7 Regression] Incorrect PPC assembly due to inserted .machine pseudo-op

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 16 23:36:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71216

--- Comment #8 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Hi Rin,

> However, I have a question on this fix. How about the case where
> "-Wa,-mXXX" option is given without "-mcpu=YYY" option specified?

That might or might not work; the user had better know what he is
doing if he uses an assembler option.

> This may sound pedantic to you. However, this is dangerous because
> some special mnemonics in inline assembler codes can be misassembled.
> In addition, for example, "-mcpu=e500" is forbidden whereas "-Wa,-me500"
> is possible; the user cannot use instructions for e500 in inline
> assembler codes.

GCC does not support -me500, right.  You need to configure your compiler
for a powerpc-*-eabispe* target as far as I know (I'm no expert on this).


More information about the Gcc-bugs mailing list