[libffi testsuite] Set -ffp-contract=off for libffi.call/many.c

James Greenhalgh james.greenhalgh@arm.com
Wed May 29 08:39:00 GMT 2013


>   The problem with unqualified dg-options is that non-GCC compilers
> will complain about them, and libffi currently supports compilers from
> IBM, Oracle and Microsoft.  Could you please resubmit with the
> appropriate target qualifier? Just look at other uses of dg-options.
> (to answer your other question, either a patch email or pull request
> would be fine)

Hi Anthony,

I'm sorry, but I'm not sure what you are asking me to do. Looking at
other test cases I see, for example:

testsuite/libffi.call/huge_struct.c:/* { dg-options -Wformat=0 { target
moxie*-*-elf } } */

But my understanding is that this restricts adding the option to
moxie*-*-elf targets rather than compilers.

I think to implement what you are asking I would want something like

/* { dg-options -ffp-contract=off { compiler *gcc* } } */

As best as I understand it, any GCC target which can contract
fused multiply adds will require this change, which would require
me to write:

/* { dg-options -ffp-contract=off { target *-*-* } } */

But then I think I have opened myself up to failing with other compilers
again.

Have I completely misunderstood what you are requesting? Could you
point me towards some other examples which achieve what I want?

Thanks,
James






More information about the Libffi-discuss mailing list