Home
last modified time | relevance | path

Searched refs:stmt (Results 1 – 7 of 7) sorted by relevance

/scripts/gcc-plugins/
Dgcc-common.h193 static inline gasm *as_a_gasm(gimple stmt) in as_a_gasm() argument
195 return as_a<gasm>(stmt); in as_a_gasm()
198 static inline const gasm *as_a_const_gasm(const_gimple stmt) in as_a_const_gasm() argument
200 return as_a<const gasm>(stmt); in as_a_const_gasm()
203 static inline gassign *as_a_gassign(gimple stmt) in as_a_gassign() argument
205 return stmt; in as_a_gassign()
208 static inline const gassign *as_a_const_gassign(const_gimple stmt) in as_a_const_gassign() argument
210 return stmt; in as_a_const_gassign()
213 static inline gcall *as_a_gcall(gimple stmt) in as_a_gcall() argument
215 return as_a<gcall>(stmt); in as_a_gcall()
[all …]
Drandomize_layout_plugin.c750 static bool type_name_eq(gimple stmt, const_tree type_tree, const char *wanted_name) in type_name_eq() argument
765 INFORM(gimple_location(stmt), "found non-char INTEGER_TYPE cast comparison: %qT\n", type_tree); in type_name_eq()
775 INFORM(gimple_location(stmt), "found non-void POINTER_TYPE cast comparison %qT\n", type_tree); in type_name_eq()
780 INFORM(gimple_location(stmt), "unhandled cast comparison: %qT\n", type_tree); in type_name_eq()
788 static bool whitelisted_cast(gimple stmt, const_tree lhs_tree, const_tree rhs_tree) in whitelisted_cast() argument
791 expanded_location xloc = expand_location(gimple_location(stmt)); in whitelisted_cast()
797 if (type_name_eq(stmt, lhs_tree, entry->lhs) && type_name_eq(stmt, rhs_tree, entry->rhs)) in whitelisted_cast()
820 gimple stmt; in find_bad_casts_execute() local
831 stmt = gsi_stmt(gsi); in find_bad_casts_execute()
835 debug_gimple_stmt(stmt); in find_bad_casts_execute()
[all …]
Dstackleak_plugin.c56 gimple stmt; in add_stack_tracking_gcall() local
62 stmt = gimple_build_call(track_function_decl, 0); in add_stack_tracking_gcall()
63 gimple_call = as_a_gcall(stmt); in add_stack_tracking_gcall()
78 static bool is_alloca(gimple stmt) in is_alloca() argument
80 if (gimple_call_builtin_p(stmt, BUILT_IN_ALLOCA)) in is_alloca()
83 if (gimple_call_builtin_p(stmt, BUILT_IN_ALLOCA_WITH_ALIGN)) in is_alloca()
192 gimple stmt; in stackleak_instrument_execute() local
194 stmt = gsi_stmt(gsi); in stackleak_instrument_execute()
197 if (is_gimple_call(stmt)) in stackleak_instrument_execute()
200 if (!is_alloca(stmt)) in stackleak_instrument_execute()
Dsancov_plugin.c43 const_gimple stmt; in sancov_execute() local
50 stmt = gsi_stmt(gsi); in sancov_execute()
52 gimple_set_location(gcall, gimple_location(stmt)); in sancov_execute()
Dstructleak_plugin.c131 gimple stmt = gsi_stmt(gsi); in initialize() local
135 if (!gimple_assign_single_p(stmt)) in initialize()
137 rhs1 = gimple_assign_rhs1(stmt); in initialize()
142 if (gimple_get_lhs(stmt) != var) in initialize()
Dlatent_entropy_plugin.c389 gimple stmt = gsi_stmt(gsi); in handle_tail_calls() local
391 if (!is_gimple_call(stmt)) in handle_tail_calls()
394 call = as_a_gcall(stmt); in handle_tail_calls()
/scripts/
Dcheckpatch.pl1804 my ($stmt) = @_;
1807 $stmt =~ s/(^|\n)./$1/g;
1808 $stmt =~ s/^\s*//;
1809 $stmt =~ s/\s*$//;
1811 my @stmt_lines = ($stmt =~ /\n/g);
1817 my ($stmt) = @_;
1819 my @stmt_lines = ($stmt =~ /\n/g);
1825 my ($stmt) = @_;
1827 $stmt =~ s/(^|\n)./$1/g;
1828 $stmt =~ s/^\s*{//;
[all …]