]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada-tree.h (DECL_FORCED_BY_REF_P): New macro.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 30 Aug 2019 15:22:34 +0000 (15:22 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 30 Aug 2019 15:22:34 +0000 (15:22 +0000)
commit1edbeb153d802dbac524d7177d72d173278183f1
treef439066a9993cbf20f862f5575561432512c86c5
parent5e017b1e25655f256a130419b427811bb1016b43
ada-tree.h (DECL_FORCED_BY_REF_P): New macro.

* gcc-interface/ada-tree.h (DECL_FORCED_BY_REF_P): New macro.
* gcc-interface/decl.c (gnat_to_gnu_param): Set it on parameters
whose mechanism was forced to by-reference.
* gcc-interface/trans.c (Call_to_gnu): Do not issue a warning about a
misaligned actual parameter if it is based on a CONSTRUCTOR.  Remove
  obsolete warning for users of Starlet.  Issue a warning if a temporary
is make around the call for a parameter with DECL_FORCED_BY_REF_P set.
(addressable_p): Return true for REAL_CST and ADDR_EXPR.

From-SVN: r275198
gcc/ada/ChangeLog
gcc/ada/gcc-interface/ada-tree.h
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/trans.c