This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH,testsuite] Skip gcc.dg/lto/pr60449_0.c for mips*-*-elf* targets.
Hi Toma,
> As you suggested, I have added a check_gettimeofday_available proc in
> target-supports.exp and a dg-require-gettimeofday proc in target-supports-dg.exp
> which check for gettimeofday using the existing check_function_available proc.
that's not what I suggested (or at least meant to suggest): having
gettimeofday as an effective-target keyword (like setrlimit, mmap, and
others) is the way to go, just your previous implementation of
check_effective_target_gettimeofday was problematic/unreliable.
If you go this route, there's no need to modify target-supports-dg.exp
at all.
Besides: I forget to mention that new effective-target keywords need to
be documented in sourcebuild.texi.
Sorry for the confusion.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University