Skip to content
Snippets Groups Projects
Commit 57b706d1 authored by Torbjörn SVENSSON's avatar Torbjörn SVENSSON
Browse files

testsuite: Only run test if alarm is available


Most baremetal toolchains will not have an implementation for alarm and
sigaction as they are target specific.
For arm-none-eabi with newlib, function signatures are exposed, but
there is no implmentation and thus the test cases causes a undefined
symbol link error.

gcc/testsuite/ChangeLog:

	* gcc.dg/pr78185.c: Remove dg-do and replace with
	with dg-require-effective-target of signal and alarm.
	* gcc.dg/pr116906-1.c: Likewise.
	* gcc.dg/pr116906-2.c: Likewise.
	* gcc.dg/vect/pr101145inf.c: Use effective-target alarm.
	* gcc.dg/vect/pr101145inf_1.c: Likewise.
	* lib/target-supports.exp(check_effective_target_alarm): New.

gcc/ChangeLog:

	* doc/sourcebuild.texi (Effective-Target Keywords): Document
	'alarm'.

Signed-off-by: default avatarTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
parent f30edd17
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment