]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Const-correctness of gimple_call_builtin_p
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 7 May 2014 19:35:23 +0000 (19:35 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 7 May 2014 19:35:23 +0000 (19:35 +0000)
gcc/
2014-05-07  David Malcolm  <dmalcolm@redhat.com>

* gimple.h (gimple_builtin_call_types_compatible_p): Accept a
const_gimple, rather than a gimple.
(gimple_call_builtin_p): Likewise, for the three variants.

* gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
(gimple_call_builtin_p): Likewise, for the three variants.

From-SVN: r210185

gcc/ChangeLog
gcc/gimple.c
gcc/gimple.h

index a12b4a39411c2d49d83c53ec7cfff3b71edad870..67d5a9d691e43253b55c7cbaad431319216b7742 100644 (file)
@@ -1,3 +1,12 @@
+2014-05-07  David Malcolm  <dmalcolm@redhat.com>
+
+       * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
+       const_gimple, rather than a gimple.
+       (gimple_call_builtin_p): Likewise, for the three variants.
+
+       * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
+       (gimple_call_builtin_p): Likewise, for the three variants.
+
 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
 
        PR tree-optimization/61095
index d6bc15bf4240c734cf0131950f750785f227b883..091467e99d2f6fa4b44269432c7c1dda511d57b4 100644 (file)
@@ -2376,7 +2376,7 @@ validate_type (tree type1, tree type2)
    a decl of a builtin function.  */
 
 bool
-gimple_builtin_call_types_compatible_p (gimple stmt, tree fndecl)
+gimple_builtin_call_types_compatible_p (const_gimple stmt, tree fndecl)
 {
   gcc_checking_assert (DECL_BUILT_IN_CLASS (fndecl) != NOT_BUILT_IN);
 
@@ -2405,7 +2405,7 @@ gimple_builtin_call_types_compatible_p (gimple stmt, tree fndecl)
 /* Return true when STMT is builtins call.  */
 
 bool
-gimple_call_builtin_p (gimple stmt)
+gimple_call_builtin_p (const_gimple stmt)
 {
   tree fndecl;
   if (is_gimple_call (stmt)
@@ -2418,7 +2418,7 @@ gimple_call_builtin_p (gimple stmt)
 /* Return true when STMT is builtins call to CLASS.  */
 
 bool
-gimple_call_builtin_p (gimple stmt, enum built_in_class klass)
+gimple_call_builtin_p (const_gimple stmt, enum built_in_class klass)
 {
   tree fndecl;
   if (is_gimple_call (stmt)
@@ -2431,7 +2431,7 @@ gimple_call_builtin_p (gimple stmt, enum built_in_class klass)
 /* Return true when STMT is builtins call to CODE of CLASS.  */
 
 bool
-gimple_call_builtin_p (gimple stmt, enum built_in_function code)
+gimple_call_builtin_p (const_gimple stmt, enum built_in_function code)
 {
   tree fndecl;
   if (is_gimple_call (stmt)
index edb46351ea6a0c82e2328246778d44fa25e8c818..9df45de94b6e24b1e48c0b83aecfd66ea182eba9 100644 (file)
@@ -1256,10 +1256,10 @@ extern tree gimple_unsigned_type (tree);
 extern tree gimple_signed_type (tree);
 extern alias_set_type gimple_get_alias_set (tree);
 extern bool gimple_ior_addresses_taken (bitmap, gimple);
-extern bool gimple_builtin_call_types_compatible_p (gimple, tree);
-extern bool gimple_call_builtin_p (gimple);
-extern bool gimple_call_builtin_p (gimple, enum built_in_class);
-extern bool gimple_call_builtin_p (gimple, enum built_in_function);
+extern bool gimple_builtin_call_types_compatible_p (const_gimple, tree);
+extern bool gimple_call_builtin_p (const_gimple);
+extern bool gimple_call_builtin_p (const_gimple, enum built_in_class);
+extern bool gimple_call_builtin_p (const_gimple, enum built_in_function);
 extern bool gimple_asm_clobbers_memory_p (const_gimple);
 extern void dump_decl_set (FILE *, bitmap);
 extern bool nonfreeing_call_p (gimple);