aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2012-03-05 10:57:43 -0800
committerRichard Henderson <rth@gcc.gnu.org>2012-03-05 10:57:43 -0800
commit95a6dda5e7ec9b2fa3c9674a29e743ad374534ff (patch)
treebc3949274f616060e5a88895127679b4d8e644d6 /gcc
parentf49b12f49c401d743fed1e7a41bbcef0d525ba6c (diff)
downloadgcc-95a6dda5e7ec9b2fa3c9674a29e743ad374534ff.zip
gcc-95a6dda5e7ec9b2fa3c9674a29e743ad374534ff.tar.gz
gcc-95a6dda5e7ec9b2fa3c9674a29e743ad374534ff.tar.bz2
sh: Fix location of TARGET_ATOMIC_TEST_AND_SET_TRUEVAL definition.
* config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move... * config/sh/sh.c: ... here. From-SVN: r184953
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sh/sh.c5
-rw-r--r--gcc/config/sh/sh.h6
3 files changed, 10 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a3dd963..c9fa152 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2012-03-05 Richard Henderson <rth@redhat.com>
+ * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
+ * config/sh/sh.c: ... here.
+
+2012-03-05 Richard Henderson <rth@redhat.com>
+
PR target/52481
* config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
instead of calling negqi2 directly.
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 94c2b66..0bcebdf 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -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
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index 7e729478..7a2af0a 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -2473,10 +2473,4 @@ extern int current_function_interrupt;
/* FIXME: middle-end support for highpart optimizations is missing. */
#define high_life_started reload_in_progress
-/* 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
-
#endif /* ! GCC_SH_H */