This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dg-require-effective-target & gcc.c-torture suite
On Tue, Nov 2, 2010 at 11:28 PM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> Steve Ellcey <sje@cup.hp.com> writes:
>
>> 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.
>
> I think you need to use a <testcase>.x file instead.
Existing practice says the testcases should move to gcc.dg/torture
instead. I doubt any existing directives work in gcc.c-torture.
Richard.