diff options
author | Martin Liska <mliska@suse.cz> | 2020-05-21 12:45:47 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-05-21 16:37:44 +0200 |
commit | 9f561d35223b7cd11e5486ba087d8e7890cf9b1d (patch) | |
tree | 40051e1c1d8c80c925adc8b4d706d4651d141964 /gcc/common | |
parent | 69b35b7c91ebbc1a6df57e957303e904210ad265 (diff) | |
download | gcc-9f561d35223b7cd11e5486ba087d8e7890cf9b1d.zip gcc-9f561d35223b7cd11e5486ba087d8e7890cf9b1d.tar.gz gcc-9f561d35223b7cd11e5486ba087d8e7890cf9b1d.tar.bz2 |
Add outline-atomics to target attribute.
* common/config/aarch64/aarch64-common.c (aarch64_handle_option):
Handle OPT_moutline_atomics.
* config/aarch64/aarch64.c: Add outline-atomics to
aarch64_attributes.
* doc/extend.texi: Document the newly added target attribute.
* gcc.target/aarch64/target_attr_20.c: New test.
* gcc.target/aarch64/target_attr_21.c: New test.
(cherry picked from commit 9e02b45ffc60e0078bde3c56a14f00c54b7f8039)
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/aarch64/aarch64-common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common/config/aarch64/aarch64-common.c b/gcc/common/config/aarch64/aarch64-common.c index d500ae5..eaa9040 100644 --- a/gcc/common/config/aarch64/aarch64-common.c +++ b/gcc/common/config/aarch64/aarch64-common.c @@ -110,6 +110,10 @@ aarch64_handle_option (struct gcc_options *opts, opts->x_flag_omit_leaf_frame_pointer = val; return true; + case OPT_moutline_atomics: + opts->x_aarch64_flag_outline_atomics = val; + return true; + default: return true; } |