> -----Original Message----- > From: Toma Tabacu [mailto:toma.tab...@imgtec.com] > Sent: Tuesday, February 28, 2017 9:32 AM > To: gcc-patches@gcc.gnu.org > Cc: Matthew Fortune <matthew.fort...@imgtec.com>; Moore, > Catherine <catherine_mo...@mentor.com> > Subject: [PATCH,testsuite] Skip gcc.dg/lto/pr60449_0.c for mips*-*-elf* > targets. > > Hi, > > The gcc.dg/lto/pr60449_0.c is failing for mips*-*-elf* targets because > they do > not support gettimeofday, which is used in this test case. > > This patch changes the test so that it is skipped for mips*-*-elf* targets. >
Hi Toma, There are some MIPS ELF targets that do support gettimeofday. Perhaps you could handle this with a dg_require_effective_target entry for gettimeofday. Thanks, Catherine > > gcc/testsuite/ > > * gcc.dg/lto/pr60449_0.c (dg-skip-if): Skip for mips*-*-elf*. > > diff --git a/gcc/testsuite/gcc.dg/lto/pr60449_0.c > b/gcc/testsuite/gcc.dg/lto/pr60449_0.c > index 5b878a6..6f3eccb 100644 > --- a/gcc/testsuite/gcc.dg/lto/pr60449_0.c > +++ b/gcc/testsuite/gcc.dg/lto/pr60449_0.c > @@ -1,5 +1,5 @@ > /* { dg-lto-do link } */ > -/* { dg-skip-if "Needs gettimeofday" { "avr-*-*" } } */ > +/* { dg-skip-if "Needs gettimeofday" { "avr-*-*" mips*-*-elf* } } */ > > extern int printf (const char *__restrict __format, ...); > typedef long int __time_t;