-
- Downloads
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:
Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Showing
- gcc/doc/sourcebuild.texi 3 additions, 0 deletionsgcc/doc/sourcebuild.texi
- gcc/testsuite/gcc.dg/pr116906-1.c 2 additions, 1 deletiongcc/testsuite/gcc.dg/pr116906-1.c
- gcc/testsuite/gcc.dg/pr116906-2.c 2 additions, 1 deletiongcc/testsuite/gcc.dg/pr116906-2.c
- gcc/testsuite/gcc.dg/pr78185.c 2 additions, 1 deletiongcc/testsuite/gcc.dg/pr78185.c
- gcc/testsuite/gcc.dg/vect/pr101145inf.c 1 addition, 0 deletionsgcc/testsuite/gcc.dg/vect/pr101145inf.c
- gcc/testsuite/gcc.dg/vect/pr101145inf_1.c 1 addition, 0 deletionsgcc/testsuite/gcc.dg/vect/pr101145inf_1.c
- gcc/testsuite/lib/target-supports.exp 27 additions, 0 deletionsgcc/testsuite/lib/target-supports.exp
Loading
Please register or sign in to comment