diff options
author | Martin Liska <mliska@suse.cz> | 2016-11-14 13:09:48 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-11-14 12:09:48 +0000 |
commit | 4d2098539a53d9e2dddd6233fb68820715d95862 (patch) | |
tree | ddc0a002eeabbf51f86b3f439e6a98477e64cc67 /gcc/gcc.c | |
parent | f6b9a2a0c58a6f8b29f801fd1631c7eee5138c3a (diff) | |
download | gcc-4d2098539a53d9e2dddd6233fb68820715d95862.zip gcc-4d2098539a53d9e2dddd6233fb68820715d95862.tar.gz gcc-4d2098539a53d9e2dddd6233fb68820715d95862.tar.bz2 |
Introduce -fprofile-update=prefer-atomic
PR bootstrap/78069
* common.opt: Add prefer-atomic as a new enum value for
-fprofile-update.
* coretypes.h: Likewise.
* doc/invoke.texi: Document the new option value.
* gcc.c: Replace atomic with prefer-atomic. Remove warning.
* tree-profile.c (tree_profiling): Select default value
of -fprofile-update when 'prefer-atomic' is selected.
PR bootstrap/78069
* gcc.dg/no_profile_instrument_function-attr-1.c: Update test
to match scanned pattern.
* gcc.dg/tree-ssa/ssa-lim-11.c: Likewise.
From-SVN: r242386
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1144,11 +1144,7 @@ static const char *cc1_options = %{coverage:-fprofile-arcs -ftest-coverage}\ %{fprofile-arcs|fprofile-generate*|coverage:\ %{!fprofile-update=single:\ - %{pthread:-fprofile-update=atomic}}}\ - %{fprofile-update=single:\ - %{fprofile-arcs|fprofile-generate*|coverage:\ - %{pthread:%n-fprofile-update=atomic should be used\ - for a multithreaded application}}}"; + %{pthread:-fprofile-update=prefer-atomic}}}"; static const char *asm_options = "%{-target-help:%:print-asm-header()} " |