[Bug rtl-optimization/121424] Debug info associates return instruction with inlined function due to copying of the return during cfgcleanup after RA

2025-08-10 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121424

Eric Botcazou  changed:

   What|Removed |Added

 CC||ebotcazou at gcc dot gnu.org

--- Comment #12 from Eric Botcazou  ---
Their location is supposed to be saved onto the edge, and rematerialized on a
newly-created nop instruction at -O0 but of course not at higher levels.

[Bug rtl-optimization/121424] Debug info associates return instruction with inlined function due to copying of the return during cfgcleanup after RA

2025-08-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121424

--- Comment #11 from Richard Biener  ---
I'll note returns have been an issue wrt locations because we unify all returns
during gimple lowering / CFG build so we have a single edge to EXIT.

[Bug rtl-optimization/121424] Debug info associates return instruction with inlined function due to copying of the return during cfgcleanup after RA

2025-08-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121424

Andrew Pinski  changed:

   What|Removed |Added

   Assignee|pinskia at gcc dot gnu.org |unassigned at gcc dot 
gnu.org
Summary|Debug info associates   |Debug info associates
   |return instruction with |return instruction with
   |inlined function|inlined function due to
   ||copying of the return
   ||during cfgcleanup after RA
 Status|ASSIGNED|NEW

--- Comment #10 from Andrew Pinski  ---
I am going to let someone who understands this code better take it over because
I know I missed at least misunderstood it for the location.