Fix ipa-clone-3.c on some targets
authorMartin Jambor <mjambor@suse.cz>
Fri, 10 Jan 2020 13:16:44 +0000 (14:16 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 10 Jan 2020 13:16:44 +0000 (14:16 +0100)
2020-01-10  Martin Jambor  <mjambor@suse.cz>

* gcc.dg/ipa/ipa-clone-3.c: Replace struct initializer with
piecemeal initialization.

From-SVN: r280105

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-clone-3.c

index fe0aeaf1be5e1fd287433e87b2a268ebb5b45d9f..d208b673dadd83c269ef8554e29686e131434a1d 100644 (file)
@@ -1,3 +1,8 @@
+2020-01-10  Martin Jambor  <mjambor@suse.cz>
+
+       * gcc.dg/ipa/ipa-clone-3.c: Replace struct initializer with
+       piecemeal initialization.
+
 2020-01-10  Richard Sandiford  <richard.sandiford@arm.com>
 
        * gcc.target/aarch64/sve/index_1_run.c: Require aarch64_sve256_hw
index 18d29bdd0b3ecd3f3faade7cc7d64490095bff36..a73cb8b63fc521ad409e5a7291a0f5ec5fab2ca7 100644 (file)
@@ -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);
 }