https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91195
Jiangning Liu <jiangning.liu at amperecomputing dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #8 from Jiangning Liu <jiangning.liu at amperecomputing dot com> --- Martin is arguing setting the no-warning bit in middle-end for this scenario is not a robust solution at https://gcc.gnu.org/ml/gcc-patches/2019-07/msg01525.html. What about moving the case below to -O3? Could it be acceptable by -Wmaybe-uninitialized tests? tree base = get_base_address (lhs); if (!nontrap->contains (lhs) && auto_var_p (base) && TREE_ADDRESSABLE (base) && optimization_level > 2) { /* Do conditional store replacement by inserting a load. */ }