I was looking at a failure on IA64 HP-UX with the test
gcc.c-torture/execute/pr45636.c. When compiled with -Os
the call to mempcpy is not inlined and the test fails to
compile because HP-UX does not have a mempcpy function.
I tried creating a proc 'check_effective_target_mempcpy'
in gcc/testsuite/lib/target-supports.exp and using
/* { dg-require-effective-target mempcpy } */
on the test, but that did not work. It appears that the
gcc.c-torture/execute (and compile?) tests do not obey
dg-require-effective-target directives. Does anyone know if
this is a bug or is it just a known issue that
dg-require-effective-target is not expected to work in
this testsuite? If I move the test to gcc.dg then it works
the way I expect.
There are tests in gcc.c-torture/compile that have
dg-require-effective-target directives in them, but I don't
know if they are working or not. I don't see any other
tests in gcc.c-torture/execute that use this directive.
Steve Ellcey
[email protected]