https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91674
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> --- This is essentially a dup of PR105090, which is now fixed on master. The code generation in both Arm and Thumb2 state is essentially the same early on, but in Thumb we were unable to optimize away all the byte manipulations. The unused stack slot was needed at the time of early expansion to RTL and once created there's no mechanism for getting rid of it if it is no-longer needed. *** This bug has been marked as a duplicate of bug 105090 ***