[Bug target/83220] modification of a global register variable while the function only reads from it

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 30 08:04:00 GMT 2017


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ra, wrong-code
             Target|                            |x86_64-*-* i?86-*-*
          Component|c                           |target
            Version|unknown                     |8.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Try -ffixed-rbp, not sure if your expectations are valid.  It might have to do
with a regstack thing given you use x87 math.

Confirmed on trunk with -O2, -ffixed-rbp seems to work.


More information about the Gcc-bugs mailing list