diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-03-28 09:01:57 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-03-28 09:01:57 +0000 |
commit | 8fbe82503608a6859c7d9d20779bc52af618b64a (patch) | |
tree | b8ccb7f450eee4dc11939d53d2c64580b749a415 /gcc/cgraphunit.c | |
parent | de4c7f60f2891193bf3f5da823b17fa0d7fd4830 (diff) | |
download | gcc-8fbe82503608a6859c7d9d20779bc52af618b64a.tar.gz |
Fix calls.c for a _complex type (PR ipa/80104).
2017-03-28 Martin Liska <mliska@suse.cz>
PR ipa/80104
* cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
thunk call as DECL_GIMPLE_REG_P when vector or complex type.
2017-03-28 Martin Liska <mliska@suse.cz>
PR ipa/80104
* gcc.dg/ipa/pr80104.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246525 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index c82a88a599c..8635e3bd0e9 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1806,6 +1806,10 @@ cgraph_node::expand_thunk (bool output_asm_thunks, bool force_gimple_thunk) for (; i < nargs; i++, arg = DECL_CHAIN (arg)) { tree tmp = arg; + if (VECTOR_TYPE_P (TREE_TYPE (arg)) + || TREE_CODE (TREE_TYPE (arg)) == COMPLEX_TYPE) + DECL_GIMPLE_REG_P (arg) = 1; + if (!is_gimple_val (arg)) { tmp = create_tmp_reg (TYPE_MAIN_VARIANT |