diff mbox

[84/89] Concretize gimple_call_arg_flags

Message ID 1398099480-49147-85-git-send-email-dmalcolm@redhat.com
State New
Headers show

Commit Message

David Malcolm April 21, 2014, 4:57 p.m. UTC
gcc/
	* gimple.h (gimple_call_arg_flags): Require a const_gimple_call
	rather than a const_gimple.

	* gimple.c (gimple_call_fnspec): Likewise.
	(gimple_call_arg_flags): Likewise.
---
 gcc/gimple.c | 4 ++--
 gcc/gimple.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Jeff Law May 12, 2014, 6:02 p.m. UTC | #1
On 04/21/14 10:57, David Malcolm wrote:
> gcc/
> 	* gimple.h (gimple_call_arg_flags): Require a const_gimple_call
> 	rather than a const_gimple.
>
> 	* gimple.c (gimple_call_fnspec): Likewise.
> 	(gimple_call_arg_flags): Likewise.
This is fine, but will need tweaking once the const changes go in.  The 
final form is approved given its triviality, but please post for 
archival purposes.

jeff
diff mbox

Patch

diff --git a/gcc/gimple.c b/gcc/gimple.c
index 69c639a..582f0f0 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -1351,7 +1351,7 @@  gimple_call_flags (const_gimple stmt)
 /* Return the "fn spec" string for call STMT.  */
 
 static tree
-gimple_call_fnspec (const_gimple stmt)
+gimple_call_fnspec (const_gimple_call stmt)
 {
   tree type, attr;
 
@@ -1369,7 +1369,7 @@  gimple_call_fnspec (const_gimple stmt)
 /* Detects argument flags for argument number ARG on call STMT.  */
 
 int
-gimple_call_arg_flags (const_gimple stmt, unsigned arg)
+gimple_call_arg_flags (const_gimple_call stmt, unsigned arg)
 {
   tree attr = gimple_call_fnspec (stmt);
 
diff --git a/gcc/gimple.h b/gcc/gimple.h
index a7829a4..dd6dd38 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -1683,7 +1683,7 @@  bool empty_body_p (gimple_seq);
 gimple_seq gimple_seq_copy (gimple_seq);
 bool gimple_call_same_target_p (const_gimple, const_gimple);
 int gimple_call_flags (const_gimple);
-int gimple_call_arg_flags (const_gimple, unsigned);
+int gimple_call_arg_flags (const_gimple_call, unsigned);
 int gimple_call_return_flags (const_gimple_call);
 bool gimple_assign_copy_p (gimple);
 bool gimple_assign_ssa_name_copy_p (gimple);