sh: Fix location of TARGET_ATOMIC_TEST_AND_SET_TRUEVAL definition.
authorRichard Henderson <rth@redhat.com>
Mon, 5 Mar 2012 18:57:43 +0000 (10:57 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 5 Mar 2012 18:57:43 +0000 (10:57 -0800)
        * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
        * config/sh/sh.c: ... here.

From-SVN: r184953

gcc/ChangeLog
gcc/config/sh/sh.c
gcc/config/sh/sh.h

index a3dd9634f3825ceef2b0ff3feea857920ebc8c7c..c9fa1521ef34db09b808cd193738b0eed601a741 100644 (file)
@@ -1,3 +1,8 @@
+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
index 94c2b66c4517b74a23e5d1f878b3744f8f0f0bee..0bcebdfea0e18ecde81e1867ef54e875bf0391f8 100644 (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;
 \f
 /* Implement TARGET_OPTION_OVERRIDE macro.  Validate and override 
index 7e729478a505f363af3d5f69b0b1f80d5c2849ce..7a2af0a2841b3fa9a04d4ce44a381f18fc62545b 100644 (file)
@@ -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 */