diff options
author | Alexandre Oliva <oliva@adacore.com> | 2024-12-20 18:02:01 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2024-12-20 18:02:01 -0300 |
commit | 09dd47bc383f30f1ba03ec80f8bd849eb6283d29 (patch) | |
tree | 6a96b793b2b1fd5cfe2dc54a8ed07da44bda7c37 /gcc/fortran/trans-expr.cc | |
parent | e7108c34a3685eaf9edd3b1fefbd3645b9bd8def (diff) | |
download | gcc-09dd47bc383f30f1ba03ec80f8bd849eb6283d29.zip gcc-09dd47bc383f30f1ba03ec80f8bd849eb6283d29.tar.gz gcc-09dd47bc383f30f1ba03ec80f8bd849eb6283d29.tar.bz2 |
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.
Diffstat (limited to 'gcc/fortran/trans-expr.cc')
0 files changed, 0 insertions, 0 deletions