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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|tree-optimization           |testsuite
                 CC|                            |hubicka at gcc dot gnu.org
           Keywords|wrong-debug                 |

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This I think is just a testsuite issue. r16-101-g132d01d96ea9d6 enabled ip-cp
cloning for not hot functions and with f1 being a call from main, it was not
"hot".

The debug info is correct still:
-  # DEBUG D#9 s=> i
-  # DEBUG i => D#9
-  # DEBUG D#7 s=> i
+  # DEBUG i => 5

So either the function should be marked as noipa or add -fno-ipa-cp to options.

Reply via email to