From: Martin Jambor Date: Fri, 10 Jan 2020 13:16:44 +0000 (+0100) Subject: Fix ipa-clone-3.c on some targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd6e6e0a3c1ba20b2fe4e4173c3f0dd5575b00ee;p=gcc.git 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 --- 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); }