https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116601
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Component|middle-end |tree-optimization Ever confirmed|0 |1 Last reconfirmed| |2024-09-04 Target Milestone|--- |15.0 Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. <bb 2> [local count: 1073741824]: *__val_6(D) = {}; <bb 3> [local count: 1073741824]: __trans_tmp_2 = MEM[(const struct RefitOption &)__val_6(D)]; goto <bb 5>; [100.00%] Into: <bb 2> [local count: 1073741824]: *__val_6(D) = {}; <bb 3> [local count: 1073741824]: __trans_tmp_2 = {}; goto <bb 5>; [100.00%] The difference between GCC 14 and 15 comes from gimplifier. Anyways I am going to fix this.