This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] |
On Fri, Nov 8, 2013 at 2:13 PM, Joseph S. Myers <joseph@codesourcery.com> wrote: >> Can we introduce a target-dependant source here, in the same way as > > Sure, that seems a reasonable thing to do. I think putting a file fenv.c > in an appropriate subdirectory of libatomic/config will result in it being > found automatically by the existing search path logic, but you'll need to > test that. Attached is the x86 optimized implementation of fenv.c. The source depends as little as possible on fenv.h definitions - these are defined by hardware, and for sure won't change soon in hardware-dependant file. 2013-11-08 Uros Bizjak <ubizjak@gmail.com> * config/x86/fenv.c: New file. Bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32}. The testing of atomics currently fails on 32bit target due to missing __atomic_{load,store}_16 functions, so the patch is not adequately tested yet. Yes, I have tested that the libatomic's auto-configuration logic works ;) Uros.
Attachment:
a.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |