* config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.

From-SVN: r184951
This commit is contained in:
Oleg Endo 2012-03-05 18:52:44 +00:00 committed by Richard Henderson
parent 4bf3e7a19c
commit b7fabe6d57
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/sh.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
2012-03-05 Richard Henderson <rth@redhat.com>
PR target/52481

View File

@ -575,6 +575,11 @@ static const struct attribute_spec sh_attribute_table[] =
/* Machine-specific symbol_ref flags. */
#define SYMBOL_FLAG_FUNCVEC_FUNCTION (SYMBOL_FLAG_MACH_DEP << 0)
/* The tas.b instruction sets the 7th bit in the byte, i.e. 0x80. This value
is used by optabs.c atomic op expansion code as well as in sync.md. */
#undef TARGET_ATOMIC_TEST_AND_SET_TRUEVAL
#define TARGET_ATOMIC_TEST_AND_SET_TRUEVAL 0x80
struct gcc_target targetm = TARGET_INITIALIZER;
/* Implement TARGET_OPTION_OVERRIDE macro. Validate and override