[Bug c/126552] const-qualified local register variable used as an asm operand is silently discarded

bernie at codewiz dot org via Gcc-bugs <[email protected]> Sat, 01 Aug 2026 02:10:12 +0000
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126552

--- Comment #2 from Bernie Innocenti <bernie at codewiz dot org> ---
Thank you for the hint, Drea.

Using hard register constraints requires -mlra, which exists on the m68k but
isn't even documented.

Is -mlra considered stable enough with GCC 16.1? It outputs tighter code for me
(and probably faster, but I haven't benchmarked).