Hi, I've committed the attached small patch as an obvious one, doing the same thing as Martin in the other copy in g++.dg/pr67989.C.
Christophe
2017-11-13 Christophe Lyon <christophe.l...@linaro.org> * gcc.target/arm/pr67989.C: Add -Wno-return-type to dg-additional-options.
Index: gcc/testsuite/gcc.target/arm/pr67989.C =================================================================== --- gcc/testsuite/gcc.target/arm/pr67989.C (revision 254691) +++ gcc/testsuite/gcc.target/arm/pr67989.C (revision 254692) @@ -2,8 +2,9 @@ /* { dg-options "-std=c++11 -O2" } */ /* { dg-require-effective-target arm_arch_v4t_ok } */ /* { dg-add-options arm_arch_v4t } */ -/* { dg-additional-options "-marm" } */ +/* { dg-additional-options "-marm -Wno-return-type" } */ + /* Duplicate version of the test in g++.dg to be able to run this test only if ARMv4t in ARM execution state can be targetted. Newer architecture don't expose the bug this testcase was written for. */