https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120182
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:b9434c3db900d5d037fdf2f64149b82800ceadf8 commit r16-498-gb9434c3db900d5d037fdf2f64149b82800ceadf8 Author: Richard Biener <rguent...@suse.de> Date: Fri May 9 08:38:45 2025 +0200 rtl-optimization/120182 - wrong-code with RTL DSE and constant addresses RTL DSE forms store groups from unique invariant bases but that is confused when presented with constant addresses where it assigns one store group per unique address. That causes it to not consider 0x101:QI to alias 0x100:SI. Constant accesses can really alias to every object, in practice they appear for I/O and for access to objects fixed via linker scripts for example. So simply avoid registering a store group for them. PR rtl-optimization/120182 * dse.cc (canon_address): Constant addresses have no separate store group. * gcc.dg/torture/pr120182.c: New testcase.