[Bug tree-optimization/116156] [14/15 regression] -fcompare-debug -gno-statement-frontiers failure with -O2 when building gdk-pixbuf

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 31 04:57:21 GMT 2024


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot gnu.org

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Figured it out.
```
/* Substitute from our lattice.  We need to do so only once.  */
....
                  if (!is_gimple_debug (stmt))
                    bitmap_set_bit (simple_dce_worklist, SSA_NAME_VERSION
(use));
                  if (may_propagate_copy (use, val))
```

That is the when subsituting from the lattice we can't set it the name here if
the statement was a debug statement because then we would a difference between
the debug and non-debug.


More information about the Gcc-bugs mailing list