]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR c/69272
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jan 2016 21:36:12 +0000 (21:36 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jan 2016 21:36:12 +0000 (21:36 +0000)
PR tree-opt/68964

  * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
  * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
  instead of builtin_decl_declared_p to test for declaration.

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

gcc/ChangeLog
gcc/trans-mem.c
gcc/tree.c

index ee9620473c47f67aa417a69c4d7ead9db29670de..ba70e825e8102e8cc3964824b0f67cca3f3504d0 100644 (file)
@@ -1,3 +1,11 @@
+2016-01-14  Richard Henderson  <rth@redhat.com>
+
+       PR c/69272
+       PR tree-opt/68964
+       * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
+       * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
+       instead of builtin_decl_declared_p to test for declaration.
+
 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
 
         * doc/loop.texi (Loop Analysis and Representation): Document
index c4623071386e911fb22ac8006565749401e44eec..b2047600dcb93469662aec8be40a510264c238a0 100644 (file)
@@ -1229,16 +1229,16 @@ tm_log_emit_stmt (tree addr, gimple *stmt)
        unhandled_vec:
          switch (type_size)
            {
-           case 1:
+           case 8:
              code = BUILT_IN_TM_LOG_1;
              break;
-           case 2:
+           case 16:
              code = BUILT_IN_TM_LOG_2;
              break;
-           case 4:
+           case 32:
              code = BUILT_IN_TM_LOG_4;
              break;
-           case 8:
+           case 64:
              code = BUILT_IN_TM_LOG_8;
              break;
            }
index e6880f05b2975bc52e4c061fb62f6b32731d61bd..8ac2d90dea951e2e9c84da4274bfc4723b35dc4b 100644 (file)
@@ -10393,7 +10393,7 @@ build_tm_vector_builtins (void)
   /* By default, 64 bit vectors go through the long long helpers.  */
 
   /* If a 128-bit vector is supported, declare those builtins.  */
-  if (!builtin_decl_declared_p (BUILT_IN_TM_STORE_M128)
+  if (!builtin_decl_explicit_p (BUILT_IN_TM_STORE_M128)
       && ((vtype = find_tm_vector_type (128, SImode))
          || (vtype = find_tm_vector_type (128, SFmode))))
     {
@@ -10430,7 +10430,7 @@ build_tm_vector_builtins (void)
     }
 
   /* If a 256-bit vector is supported, declare those builtins.  */
-  if (!builtin_decl_declared_p (BUILT_IN_TM_STORE_M256)
+  if (!builtin_decl_explicit_p (BUILT_IN_TM_STORE_M256)
       && ((vtype = find_tm_vector_type (256, SImode))
          || (vtype = find_tm_vector_type (256, SFmode))))
     {