From bd6e6e0a3c1ba20b2fe4e4173c3f0dd5575b00ee Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Fri, 10 Jan 2020 14:16:44 +0100 Subject: [PATCH] Fix ipa-clone-3.c on some targets 2020-01-10 Martin Jambor * gcc.dg/ipa/ipa-clone-3.c: Replace struct initializer with piecemeal initialization. From-SVN: r280105 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/ipa/ipa-clone-3.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fe0aeaf1be5..d208b673dad 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-01-10 Martin Jambor + + * gcc.dg/ipa/ipa-clone-3.c: Replace struct initializer with + piecemeal initialization. + 2020-01-10 Richard Sandiford * gcc.target/aarch64/sve/index_1_run.c: Require aarch64_sve256_hw diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-clone-3.c b/gcc/testsuite/gcc.dg/ipa/ipa-clone-3.c index 18d29bdd0b3..a73cb8b63fc 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-clone-3.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-clone-3.c @@ -34,8 +34,10 @@ int recur_fn (struct V * __restrict v) int main () { - struct V v = {1, 3}; + struct V v; + v.f0 = 1; + v.f1 = 3; return recur_fn (&v); } -- 2.30.2