sh: Fix location of TARGET_ATOMIC_TEST_AND_SET_TRUEVAL definition.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Mar 2012 18:57:43 +0000 (18:57 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Mar 2012 18:57:43 +0000 (18:57 +0000)
        * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
        * config/sh/sh.c: ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184953 138bc75d-0d04-0410-961f-82ee72b054a4

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

index a3dd963..c9fa152 100644 (file)
@@ -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.
index 94c2b66..0bcebdf 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 7e72947..7a2af0a 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 */