aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-03-28 11:01:57 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-03-28 09:01:57 +0000
commit62f96a79f10e0c6772e5302c076b8c062e42b0d9 (patch)
treeb8ccb7f450eee4dc11939d53d2c64580b749a415 /gcc/testsuite/gcc.dg
parent0dee55fec92e299eb584f2d8e4bfb797e0c2328c (diff)
downloadgcc-62f96a79f10e0c6772e5302c076b8c062e42b0d9.zip
gcc-62f96a79f10e0c6772e5302c076b8c062e42b0d9.tar.gz
gcc-62f96a79f10e0c6772e5302c076b8c062e42b0d9.tar.bz2
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. From-SVN: r246525
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/ipa/pr80104.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/pr80104.c b/gcc/testsuite/gcc.dg/ipa/pr80104.c
new file mode 100644
index 0000000..7e75c99
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/ipa/pr80104.c
@@ -0,0 +1,15 @@
+/* PR ipa/80104 */
+/* { dg-do compile } */
+/* { dg-options "-fipa-icf" } */
+
+float
+a (_Complex float b)
+{
+ return *&b;
+}
+
+float
+c (_Complex float b)
+{
+ return (&b)[0];
+}