From a044dfb0934c3caea0886dbb497181e3aca660df Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 26 Jan 2020 12:47:23 +0000 Subject: [PATCH] aarch64: Fix pr71727.c failure This test started failing after the switch to -fno-common because we can now force the array to be aligned to 16 bytes, which in turn lets us use SIMD accesses. Locally restoring -fcommon seems the most faithful to the original PR. 2020-01-27 Richard Sandiford gcc/testsuite/ PR testsuite/71727 * gcc.target/aarch64/pr71727.c: Add -fcommon. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/aarch64/pr71727.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e8928777fd9..4359aa1a865 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-01-27 Richard Sandiford + + PR testsuite/71727 + * gcc.target/aarch64/pr71727.c: Add -fcommon. + 2020-01-27 David Malcolm * gcc.dg/analyzer/sigsetjmp-5.c: New test. diff --git a/gcc/testsuite/gcc.target/aarch64/pr71727.c b/gcc/testsuite/gcc.target/aarch64/pr71727.c index 05eef3e9191..41fa72bc67e 100644 --- a/gcc/testsuite/gcc.target/aarch64/pr71727.c +++ b/gcc/testsuite/gcc.target/aarch64/pr71727.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-mstrict-align -O3" } */ +/* { dg-options "-mstrict-align -O3 -fcommon" } */ struct test_struct_s { -- 2.30.2