re PR target/54760 ([SH] Add __builtin_thread_pointer, __builtin_set_thread_pointer)
authorOleg Endo <olegendo@gcc.gnu.org>
Fri, 12 Oct 2012 00:45:36 +0000 (00:45 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Fri, 12 Oct 2012 00:45:36 +0000 (00:45 +0000)
PR target/54760
* config/sh/sh.c (bdesc): Remove thread pointer built-ins.
* config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode
name 'si'.

From-SVN: r192388

gcc/ChangeLog
gcc/config/sh/sh.c
gcc/config/sh/sh.md

index 779c3bb13401b353a76bba4ce30baefc28dcdddc..fec50a2bbee87a0fa5d4ef129decd07394c19df3 100644 (file)
@@ -1,3 +1,10 @@
+2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
+
+       PR target/54760
+       * config/sh/sh.c (bdesc): Remove thread pointer built-ins.
+       * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode
+       name 'si'.
+
 2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
 
        PR target/51244
index b4bfa0842f831df10dc931ab5a0c0720e68c81b8..3e6fbdcf5315998cab642a71bf9a1dff4fd7a0f7 100644 (file)
@@ -11815,12 +11815,6 @@ static struct builtin_description bdesc[] =
     CODE_FOR_byterev,  "__builtin_sh_media_BYTEREV", SH_BLTIN_2, 0 },
   { shmedia_builtin_p,
     CODE_FOR_prefetch, "__builtin_sh_media_PREFO", SH_BLTIN_PSSV, 0 },
-
-  { sh1_builtin_p,
-    CODE_FOR_get_thread_pointer, "__builtin_thread_pointer", SH_BLTIN_VP, 0 },
-  { sh1_builtin_p,
-    CODE_FOR_set_thread_pointer, "__builtin_set_thread_pointer",
-    SH_BLTIN_PV, 0 },
 };
 
 static void
index dacabb7cdf20c4faed06914c8ccf3d9ef026db1e..0ff6aae8377a29ca8a8253f958975541ac727806 100644 (file)
@@ -10210,7 +10210,7 @@ label:
 ;;
 ;; On SH the thread pointer is kept in the GBR.
 ;; These patterns are usually expanded from the respective built-in functions.
-(define_expand "get_thread_pointer"
+(define_expand "get_thread_pointersi"
   [(set (match_operand:SI 0 "register_operand") (reg:SI GBR_REG))]
   "TARGET_SH1")
 
@@ -10221,7 +10221,7 @@ label:
   "stc gbr,%0"
   [(set_attr "type" "tls_load")])
 
-(define_expand "set_thread_pointer"
+(define_expand "set_thread_pointersi"
   [(set (reg:SI GBR_REG)
        (unspec_volatile:SI [(match_operand:SI 0 "register_operand")]
         UNSPECV_GBR))]