From 318ed250bb846b60fe44357e8dfd60709180389a Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Thu, 25 Jun 2015 23:45:50 +0000 Subject: [PATCH] gimple.h (gimple_call_set_fn): Move inline function. 2015-06-25 Andrew MacLeod * gimple.h (gimple_call_set_fn): Move inline function. * gimple.c (gimple_call_set_fn): Relocate here. From-SVN: r224989 --- gcc/ChangeLog | 5 +++++ gcc/gimple.c | 10 ++++++++++ gcc/gimple.h | 12 +----------- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a9c6b1086d..63b716b21b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-25 Andrew MacLeod + + * gimple.h (gimple_call_set_fn): Move inline function. + * gimple.c (gimple_call_set_fn): Relocate here. + 2015-06-25 Oleg Endo PR target/65979 diff --git a/gcc/gimple.c b/gcc/gimple.c index b32c6b5ada4..bd788be9649 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -199,6 +199,16 @@ gimple_build_return (tree retval) return s; } +/* Set FNDECL to be the function called by call statement GS. */ + +void +gimple_call_set_fndecl (gimple gs, tree decl) +{ + GIMPLE_CHECK (gs, GIMPLE_CALL); + gcc_gimple_checking_assert (!gimple_call_internal_p (gs)); + gimple_set_op (gs, 1, build_fold_addr_expr_loc (gimple_location (gs), decl)); +} + /* Reset alias information on call S. */ void diff --git a/gcc/gimple.h b/gcc/gimple.h index 3a83e8f9b9a..96a43d843f6 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -1296,6 +1296,7 @@ extern gimple currently_expanding_gimple_stmt; #define gimple_alloc(c, n) gimple_alloc_stat (c, n MEM_STAT_INFO) gimple gimple_alloc_stat (enum gimple_code, unsigned MEM_STAT_DECL); greturn *gimple_build_return (tree); +void gimple_call_set_fndecl (gimple, tree); void gimple_call_reset_alias_info (gcall *); gcall *gimple_build_call_vec (tree, vec ); gcall *gimple_build_call (tree, unsigned, ...); @@ -2759,17 +2760,6 @@ gimple_call_set_fn (gcall *gs, tree fn) } -/* Set FNDECL to be the function called by call statement GS. */ - -static inline void -gimple_call_set_fndecl (gimple gs, tree decl) -{ - GIMPLE_CHECK (gs, GIMPLE_CALL); - gcc_gimple_checking_assert (!gimple_call_internal_p (gs)); - gimple_set_op (gs, 1, build_fold_addr_expr_loc (gimple_location (gs), decl)); -} - - /* Set internal function FN to be the function called by call statement CALL_STMT. */ static inline void -- 2.30.2