aboutsummaryrefslogtreecommitdiff
path: root/libatomic/config
AgeCommit message (Collapse)AuthorFilesLines
2017-02-01Fix __atomic to not implement atomic loads with CAS.Torvald Riegel1-0/+18
gcc/ * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free" conditional on existance of a fast atomic load. * optabs-query.c (can_atomic_load_p): New function. * optabs-query.h (can_atomic_load_p): Declare it. * optabs.c (expand_atomic_exchange): Always delegate to libatomic if no fast atomic load is available for the particular size of access. (expand_atomic_compare_and_swap): Likewise. (expand_atomic_load): Likewise. (expand_atomic_store): Likewise. (expand_atomic_fetch_op): Likewise. * testsuite/lib/target-supports.exp (check_effective_target_sync_int_128): Remove x86 because it provides no fast atomic load. (check_effective_target_sync_int_128_runtime): Likewise. libatomic/ * acinclude.m4: Add #define FAST_ATOMIC_LDST_*. * auto-config.h.in: Regenerate. * config/x86/host-config.h (FAST_ATOMIC_LDST_16): Define to 0. (atomic_compare_exchange_n): New. * glfree.c (EXACT, LARGER): Change condition and add comments. From-SVN: r245098
2017-01-30[ARM][PR target/78945] Fix libatomic on armv7-mSzabolcs Nagy1-2/+2
ARM libatomic inline asm uses sel, uadd8, uadd16 instructions which are only available if __ARM_FEATURE_SIMD32 is defined. libatomic/ 2017-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com> PR target/78945 * config/arm/exch_n.c (libat_exchange): Check __ARM_FEATURE_SIMD32. From-SVN: r245023
2017-01-01Update copyright years.Jakub Jelinek15-15/+15
From-SVN: r243994
2016-05-10[libatomic] Add missing files for RTEMS supportSebastian Huber2-0/+78
Add missing files for: 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de> * configure.tgt (configure_tgt_pre_target_cpu_XCFLAGS): New variable. (*-*-rtems*): New supported target. * config/rtems/host-config.h: New file. * config/rtems/lock.c: Likewise. From-SVN: r236060
2016-01-04Update copyright years.Jakub Jelinek13-13/+13
From-SVN: r232055
2015-01-05Update copyright years.Jakub Jelinek13-13/+13
From-SVN: r219188
2014-06-17Makefile.am (libatomic_la_LDFLAGS): Add lt_host_flags.Kai Tietz2-0/+178
* Makefile.am (libatomic_la_LDFLAGS): Add lt_host_flags. * configure.ac (ACX_LT_HOST_FLAGS): New. (target_thread_file): New. * configure.tgt (mingw): Add mingw support. * config/mingw/host-config.h: New file. * config/mingw/lock.c: Likewise. * Makefile.in: Regenerated. * configure: Likewise. * aclocal.m4: Likewise. * testsuite/Makefile.in: Likewise. From-SVN: r211747
2014-01-02Update copyright years in libatomic/Richard Sandiford11-11/+11
From-SVN: r206291
2013-12-09sfp-exceptions.c (__sfp_handle_exceptions): Emit SSE instructions when ↵Uros Bizjak1-3/+3
__TARGET_SSE__ is defined. libgcc/ChangeLog: 2013-12-09 Uros Bizjak <ubizjak@gmail.com> * config/i386/sfp-exceptions.c (__sfp_handle_exceptions): Emit SSE instructions when __TARGET_SSE__ is defined. libatomic/ChangeLog: 2013-12-09 Uros Bizjak <ubizjak@gmail.com> * config/x86/fenv.c (__atomic_feraiseexcept): Emit SSE instructions when __TARGET_SSE__ is defined. From-SVN: r205811
2013-11-10fenv.c: New file.Uros Bizjak1-0/+116
* config/x86/fenv.c: New file. From-SVN: r204634
2013-01-14Update copyright years in libatomic.Richard Sandiford10-10/+10
From-SVN: r195164
2012-12-04libatomic: Detect and build for ARM architecture armv8-a.Marcus Shawcroft1-0/+4
2012-12-04 Marcus Shawcroft <marcus.shawcroft@arm.com> * config/arm/arm-config.h (__ARM_ARCH_8A__): New. From-SVN: r194150
2012-05-01Add libatomic as a target library.Richard Henderson13-0/+810
From-SVN: r187018