[Bug middle-end/126418] [17 regression] PR113894 introduces new UB in optimized code

"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126418

--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 65296
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65296&action=edit
Patch which I am testing

This fixes all 3 patterns including the one for PR 123514 .
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.