Andreas Krebbel
a4c6bd0821
S/390: libatomic: Fix 16 byte atomic exchange
...
The compiler builtin will use the hardware instruction cdsg if the
memory operand is properly aligned and will fall back to the
library call otherwise.
In case the compiler for one part is able to detect that the
location is aligned and fails to do so for another usage of the hw
instruction and the sw fall back would be mixed on the same memory
location. To avoid this the library fall back also has to use the
hardware instruction if possible.
libatomic/ChangeLog:
2018-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/exch_n.c: New file.
* configure.tgt: Add the config directory for s390.
From-SVN: r258384
2018-03-09 12:32:22 +00:00
Jakub Jelinek
85ec4feb11
Update copyright years.
...
From-SVN: r256169
2018-01-03 11:03:58 +01:00
Steve Ellcey
9d0e85af87
Makefile.am (IFUNC_OPTIONS): Change aarch64 option from -march=armv8.1-a to -march=armv8-a+lse.
...
2017-12-14 Steve Ellcey <sellcey@cavium.com>
* Makefile.am (IFUNC_OPTIONS): Change aarch64
option from -march=armv8.1-a to -march=armv8-a+lse.
* configure.ac (*aarch64*): Check to see if
compiler understands -march=armv8-a+lse option.
* configure.tgt (*aarch64*): Only set try_ifunc
if compiler understands -march=armv8-a+lse option.
* Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
* configure: Regenerate.
* aclocal.m4: Regenerate.
From-SVN: r255659
2017-12-14 18:30:38 +00:00
Steve Ellcey
141abc6f1e
Makefile.am (ARCH_AARCH64_LINUX): Add IFUNC_OPTIONS and libatomic_la_LIBADD.
...
2017-12-04 Steve Ellcey <sellcey@cavium.com>
* Makefile.am (ARCH_AARCH64_LINUX): Add IFUNC_OPTIONS and
libatomic_la_LIBADD.
* config/linux/aarch64/host-config.h: New file.
* configure.ac (IFUNC_RESOLVER_ARGS): Define.
(ARCH_AARCH64_LINUX): New conditional for IFUNC builds.
* configure.tgt (aarch64): Set ARCH and try_ifunc.
(aarch64*-*-linux*) Update config_path.
(aarch64*-*-linux*) Set IFUNC_RESOLVER_ARGS.
* libatomic_i.h (GEN_SELECTOR): Add IFUNC_RESOLVER_ARGS argument.
* Makefile.in: Regenerate.
* auto-config.h.in: Regenerate.
* configure: Regenerate.
From-SVN: r255399
2017-12-05 00:49:09 +00:00
Palmer Dabbelt
b906c007fe
RISC-V Port: libatomic
...
2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
* configure.tgt: Add RISC-V tuple.
From-SVN: r245227
2017-02-06 21:38:57 +00:00
Jakub Jelinek
cbe34bb5ed
Update copyright years.
...
From-SVN: r243994
2017-01-01 13:07:43 +01:00
Sebastian Huber
c47194d2ab
[libatomic] Add RTEMS support
...
gcc/
* config/rtems.h (LIB_SPEC): Add -latomic.
libatomic/
* 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: r235466
2016-04-27 07:14:42 +00:00
H.J. Lu
3dd7e09253
Revert the last change in libatomic
...
Need to properly check if -march=i486 is really needed for -m32 build
of libatomic on Linux/x86 and Linux/x86-64.
PR target/70454
* configure.tgt (XCFLAGS): Revert the last change.
From-SVN: r235411
2016-04-25 05:41:43 -07:00
H.J. Lu
9023fd9ea0
Don't build 32-bit libatomic with -march=i486 on x86-64
...
Gcc uses the same -march= for both -m32 and -m64 on x86-64 unless
--with-arch-32= is used. There is no need for -march=i486 to compile
32-bit libatomic on x86-64.
PR target/70454
* configure.tgt (XCFLAGS): Don't add -march=i486 to compile
32-bit x86 target library on x86-64.
From-SVN: r235287
2016-04-20 07:41:55 -07:00
Jakub Jelinek
818ab71a41
Update copyright years.
...
From-SVN: r232055
2016-01-04 15:30:50 +01:00
John Marino
b6735e769f
configure.tgt: Add *-*-dragonfly to supported targets.
...
2015-07-14 John Marino <gnugcc@marino.st>
* configure.tgt: Add *-*-dragonfly to supported targets.
From-SVN: r225779
2015-07-14 16:36:51 +01:00
Andreas Tobler
82a19768cb
configure.ac: Don't add ${libgcj} for arm*-*-freebsd*.
...
toplevel:
* configure.ac: Don't add ${libgcj} for arm*-*-freebsd*.
* configure: Regenerate.
gcc:
* config.gcc (arm*-*-freebsd*): New configuration.
* config/arm/freebsd.h: New file.
* config.host: Add extra components for arm*-*-freebsd*.
* config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
* config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
libgcc:
* config.host (arm*-*-freebsd*): Add new configuration for
arm*-*-freebsd*.
* config/arm/freebsd-atomic.c: New file.
* config/arm/t-freebsd: Likewise.
* config/arm/unwind-arm.h: Add __FreeBSD__ to the list of
'PC-relative indirect' OS's.
libatomic:
* configure.tgt: Exclude arm*-*-freebsd* from try_ifunc.
libstdc++-v3:
* configure.host: Add arm*-*-freebsd* port_specific_symbol_files.
From-SVN: r219388
2015-01-09 15:06:02 +01:00
Jakub Jelinek
5624e564d2
Update copyright years.
...
From-SVN: r219188
2015-01-05 13:33:28 +01:00
Kai Tietz
6fe8c024aa
configure.tgt: Add cygwin to supported targets.
...
2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
* configure.tgt: Add cygwin to supported targets.
From-SVN: r214154
2014-08-19 16:55:37 +02:00
Uros Bizjak
537b531270
configure.tgt (alpha*): Add -mfp-trap-mode=sui to XCFLAGS.
...
* configure.tgt (alpha*): Add -mfp-trap-mode=sui to XCFLAGS.
From-SVN: r212778
2014-07-18 08:34:20 +02:00
Kai Tietz
dc3368d0f5
Makefile.am (libatomic_la_LDFLAGS): Add lt_host_flags.
...
* 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-06-17 22:43:18 +02:00
Richard Sandiford
3e6a2e378c
Update copyright years in libatomic/
...
From-SVN: r206291
2014-01-02 22:24:30 +00:00
Michael Hudson-Doyle
a115cf9c95
[AArch64] Enable building libatomic on AArch64.
...
From-SVN: r203774
2013-10-17 15:49:27 +00:00
Richard Sandiford
69b2c4233b
Update copyright years in libatomic.
...
From-SVN: r195164
2013-01-14 18:16:23 +00:00
Matthias Klose
5eb4cb4768
configure.tgt (i[3456]86): Handle -mx32 like -m64.
...
2012-11-21 Matthias Klose <doko@ubuntu.com>
* configure.tgt (i[3456]86): Handle -mx32 like -m64.
From-SVN: r193720
2012-11-22 00:47:58 +00:00
Sofiane Naci
34f8442ee2
AArch64 [6/10]
...
2012-10-23 Sofiane Naci <sofiane.naci@arm.com>
Mark libatomic unsupported in AArch64.
* configure.tgt: Mark libatomic unsupported.
From-SVN: r192727
2012-10-23 17:22:48 +00:00
Richard Henderson
483104922a
Add libatomic as a target library.
...
From-SVN: r187018
2012-05-01 08:48:28 -07:00