public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/wschmidt/heads/pu-upstream)] [AArch64] Make -moutline-atomics on by default
@ 2020-05-03 17:24 William Schmidt
0 siblings, 0 replies; only message in thread
From: William Schmidt @ 2020-05-03 17:24 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:cd4b68527988f42c10c0d6c10e812d299887e0c2
commit cd4b68527988f42c10c0d6c10e812d299887e0c2
Author: Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Date: Thu Apr 30 13:12:13 2020 +0100
[AArch64] Make -moutline-atomics on by default
2020-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.h (TARGET_OUTLINE_ATOMICS): Define.
* config/aarch64/aarch64.opt (moutline-atomics): Change to Int variable.
* doc/invoke.texi (moutline-atomics): Document as on by default.
Diff:
---
gcc/ChangeLog | 6 ++++++
gcc/config/aarch64/aarch64.h | 5 +++++
gcc/config/aarch64/aarch64.opt | 2 +-
gcc/doc/invoke.texi | 1 +
4 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c81801f289e..c6e2447cd5c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2020-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/aarch64/aarch64.h (TARGET_OUTLINE_ATOMICS): Define.
+ * config/aarch64/aarch64.opt (moutline-atomics): Change to Int variable.
+ * doc/invoke.texi (moutline-atomics): Document as on by default.
+
2020-04-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
PR target/94748
diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index 74236c3cffd..24767c747ba 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -105,6 +105,11 @@
port. */
#define TARGET_PTRMEMFUNC_VBIT_LOCATION ptrmemfunc_vbit_in_delta
+
+/* Emit calls to libgcc helpers for atomic operations for runtime detection
+ of LSE instructions. */
+#define TARGET_OUTLINE_ATOMICS (aarch64_flag_outline_atomics)
+
/* Align definitions of arrays, unions and structures so that
initializations and copies can be made more efficient. This is not
ABI-changing, so it only affects places where we can see the
diff --git a/gcc/config/aarch64/aarch64.opt b/gcc/config/aarch64/aarch64.opt
index 37181b5baca..d99d14c137d 100644
--- a/gcc/config/aarch64/aarch64.opt
+++ b/gcc/config/aarch64/aarch64.opt
@@ -256,7 +256,7 @@ TargetVariable
long aarch64_stack_protector_guard_offset = 0
moutline-atomics
-Target Report Mask(OUTLINE_ATOMICS) Save
+Target Report Var(aarch64_flag_outline_atomics) Init(2) Save
Generate local calls to out-of-line atomic operations.
-param=aarch64-sve-compare-costs=
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 5bb7d94833e..527d362533a 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -16886,6 +16886,7 @@ instruction set. If using a later revision, e.g. @option{-march=armv8.1-a}
or @option{-march=armv8-a+lse}, the ARMv8.1-Atomics instructions will be
used directly. The same applies when using @option{-mcpu=} when the
selected cpu supports the @samp{lse} feature.
+This option is on by default.
@item -march=@var{name}
@opindex march
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-03 17:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-03 17:24 [gcc(refs/users/wschmidt/heads/pu-upstream)] [AArch64] Make -moutline-atomics on by default William Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).