Introduce -fprofile-update=prefer-atomic
authorMartin Liska <mliska@suse.cz>
Mon, 14 Nov 2016 12:09:48 +0000 (13:09 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 14 Nov 2016 12:09:48 +0000 (12:09 +0000)
commit4d2098539a53d9e2dddd6233fb68820715d95862
treeddc0a002eeabbf51f86b3f439e6a98477e64cc67
parentf6b9a2a0c58a6f8b29f801fd1631c7eee5138c3a
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
gcc/ChangeLog
gcc/common.opt
gcc/coretypes.h
gcc/doc/invoke.texi
gcc/gcc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-11.c
gcc/tree-profile.c