This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Hi Anthony,

Any thoughts on this?

Regards,
James

> >   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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]