Add check_effective_target_gettimeofday and use it in gcc.dg/lto/pr60449_0.c.
authorToma Tabacu <toma.tabacu@imgtec.com>
Mon, 6 Mar 2017 13:15:30 +0000 (13:15 +0000)
committerToma Tabacu <tomtab@gcc.gnu.org>
Mon, 6 Mar 2017 13:15:30 +0000 (13:15 +0000)
commit5464963112924aa64a0e82cd856275e2faa66436
tree50986e8c975549cb85de6e7f01986def77c145a4
parent1b31fca70f9f410f389363c17d85533d9bb2178a
Add check_effective_target_gettimeofday and use it in gcc.dg/lto/pr60449_0.c.

gcc/
* doc/sourcebuild.texi (Effective-Target Keywords, Environment
attributes): Document gettimeofday.

gcc/testsuite/

* gcc.dg/lto/pr60449_0.c: Add dg-require-effective-target for
gettimeofday.  Remove dg-skip-if for AVR.
* lib/target-supports.exp (check_effective_target_gettimeofday):
New proc.

From-SVN: r245921
gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr60449_0.c
gcc/testsuite/lib/target-supports.exp