[Bug inline-asm/63541] gcc compilation error: The register specified for 'variable' is not general enough to be used as a register variable
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 15 06:00:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63541
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
pc is not general enough in all of armv7. If you want to read the PC do this
instead or something like this:
asm("mov pc, %0":"=r"arm_pc);
More information about the Gcc-bugs
mailing list