On Wed, 12 May 2021 at 10:24, Richard Biener <rguent...@suse.de> wrote: > > On Wed, 12 May 2021, Bernd Edlinger wrote: > > > Hi, > > > > this fixes another regression from my previous patch. > > > > > > Bootstrapped and reg-tested on x86_64-pc-linux-gnu. > > Is it OK for trunk? > > OK. > > Richard. >
Hi, As the new test uses -fopenmp, it fails on targets that do not support it. I've committed the attached patch to skip the test in such cases. Christophe > > > > Thanks > > Bernd. > >
commit b050cf6a4d9c305daff4a96e5a2489ece69dc287 Author: Christophe Lyon <christophe.l...@linaro.org> Date: Mon May 17 09:25:43 2021 +0000 testsuite: Require openmp effective-target for PR100515 The related test uses -fopenmp, which is not supported by newlib-based targets such as arm-eabi or aarch64-elf. Requiring the openmp effective-target makes the test unsupported rather than failed. 2021-05-17 Christophe Lyon <christophe.l...@linaro.org> PR debug/100515 gcc/testsuite * gcc.dg/debug/dwarf2/pr100515.c: Require openmp effective-target. diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr100515.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr100515.c index 7c72fcd6693..17f6463cc6e 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr100515.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr100515.c @@ -1,5 +1,6 @@ /* PR debug/100515 */ /* { dg-do compile } */ +/* { dg-require-effective-target fopenmp } */ /* { dg-options "-g -O2 -fopenmp" } */ void