diff options
author | Eric Botcazou <ebotcazou@adacore.come> | 2024-11-11 11:16:26 +0100 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-11-26 10:49:36 +0100 |
commit | ae7c0475f108f14cabcc1613df449670b1e9d1a2 (patch) | |
tree | 9a7f7a9c46059f9fb7a181d2da2e4f82b41237fb /gcc/fortran/trans-expr.cc | |
parent | 84d8a383c9fe80bd9c4e364505247ef025e1c2b6 (diff) | |
download | gcc-ae7c0475f108f14cabcc1613df449670b1e9d1a2.zip gcc-ae7c0475f108f14cabcc1613df449670b1e9d1a2.tar.gz gcc-ae7c0475f108f14cabcc1613df449670b1e9d1a2.tar.bz2 |
ada: Do not use ATTR_ADDR_EXPR for 'Unrestricted_Access
Unlike for 'Access or 'Unchecked_Access, the Attribute_to_gnu routine passes
ATTR_ADDR_EXPR to build_unary_op for 'Unrestricted_Access, which causes the
processing done in build_unary_op to flatten the reference, in particular to
remove all intermediate (view) conversions, which may be problematic for the
SUBSTITUTE_PLACEHOLDER_IN_EXPR machinery.
gcc/ada/ChangeLog:
* gcc-interface/trans.cc (Attribute_to_gnu) <Attr_Access>: Do not
pass ATTR_ADDR_EXPR to build_unary_op for 'Unrestricted_Access.
Diffstat (limited to 'gcc/fortran/trans-expr.cc')
0 files changed, 0 insertions, 0 deletions