aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-11-14 13:09:48 +0100
committerMartin Liska <marxin@gcc.gnu.org>2016-11-14 12:09:48 +0000
commit4d2098539a53d9e2dddd6233fb68820715d95862 (patch)
treeddc0a002eeabbf51f86b3f439e6a98477e64cc67 /gcc/gcc.c
parentf6b9a2a0c58a6f8b29f801fd1631c7eee5138c3a (diff)
downloadgcc-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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 5213cb0..f78acd6 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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()} "