diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/gimple.c | 8 | ||||
-rw-r--r-- | gcc/gimple.h | 8 |
3 files changed, 17 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a12b4a3..67d5a9d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/gimple.c b/gcc/gimple.c index d6bc15b..091467e 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -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) diff --git a/gcc/gimple.h b/gcc/gimple.h index edb4635..9df45de 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -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); |