strub: indirect volatile parms in wrappers
commite1e71b4e0681974b3db41afa7fc18720a30d6848
authorAlexandre Oliva <oliva@adacore.com>
Thu, 14 Dec 2023 13:41:19 +0000 (14 10:41 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 14 Dec 2023 13:41:19 +0000 (14 10:41 -0300)
tree1d09edb7a9f00ed473a6afe2221f05e90dfaf713
parent37afeec8a635153ccd4e91bd686c93217706894d
strub: indirect volatile parms in wrappers

Arrange for strub internal wrappers to pass volatile arguments by
reference to the wrapped bodies.

for  gcc/ChangeLog

PR middle-end/112938
* ipa-strub.cc (pass_ipa_strub::execute): Pass volatile args
by reference to internal strub wrapped bodies.

for  gcc/testsuite/ChangeLog

PR middle-end/112938
* gcc.dg/strub-internal-volatile.c: Check indirection of
volatile args.
gcc/ipa-strub.cc
gcc/testsuite/gcc.dg/strub-internal-volatile.c