https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118007
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alexandre Oliva <aol...@gcc.gnu.org>: https://gcc.gnu.org/g:09dd47bc383f30f1ba03ec80f8bd849eb6283d29 commit r15-6399-g09dd47bc383f30f1ba03ec80f8bd849eb6283d29 Author: Alexandre Oliva <ol...@adacore.com> Date: Fri Dec 20 18:02:01 2024 -0300 strub: accept indirection of volatile pointer types [PR118007] We don't want to indirect pointers in strub wrappers, because it generally isn't profitable, but if the argument is volatile, then we must use indirection to preserve access patterns, so amend the assertion check. for gcc/ChangeLog PR middle-end/118007 * ipa-strub.cc (pass_ipa_strub::execute): Accept indirecting volatile args of pointer types. for gcc/testsuite/ChangeLog PR middle-end/118007 * gcc.dg/strub-pr118007.c: New.