cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE thunk that returns...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 23 Jan 2019 11:07:56 +0000 (11:07 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 23 Jan 2019 11:07:56 +0000 (11:07 +0000)
commit39791fb62f536e77e0c4bc6bf2fdc6f2bcdf7f05
tree5febf9df2afc9efe3f7010a454a9c820322a53c4
parentb3e5901b625df90e3618b2e5a06cccc36cd84b6a
cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE thunk that returns by reference...

* cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
thunk that returns by reference, use the type of the return object
of the thunk instead of that of the alias to build the dereference.

From-SVN: r268182
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/opt4.ads [new file with mode: 0644]