[Bug target/79343] [7 Regression] error: PIC register clobbered by '%2' in 'asm'

amodra at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Feb 2 21:31:00 GMT 2017


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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com

--- Comment #3 from Alan Modra <amodra at gmail dot com> ---
powerpc64le is still PIC by default.  If you see non-PIC in executables it is
likely due to ld editing code.

The blas source looks to be adding r2 (and r0) to the clobbers completely
unnecessarily.  I suspect what the author of that code was trying to do was say
that i and n are changed by the asm, which is done by making them output args
as well as input.  The memory clobber could be removed too, if *x1 was made an
output.  Oh, and the asm misses clobbers for all the vector regs used..


More information about the Gcc-bugs mailing list