Lines Matching refs:stmt
754 static bool type_name_eq(gimple stmt, const_tree type_tree, const char *wanted_name)
769 INFORM(gimple_location(stmt), "found non-char INTEGER_TYPE cast comparison: %qT\n", type_tree);
779 INFORM(gimple_location(stmt), "found non-void POINTER_TYPE cast comparison %qT\n", type_tree);
784 INFORM(gimple_location(stmt), "unhandled cast comparison: %qT\n", type_tree);
792 static bool whitelisted_cast(gimple stmt, const_tree lhs_tree, const_tree rhs_tree)
795 expanded_location xloc = expand_location(gimple_location(stmt));
801 if (type_name_eq(stmt, lhs_tree, entry->lhs) && type_name_eq(stmt, rhs_tree, entry->rhs))
824 gimple stmt;
835 stmt = gsi_stmt(gsi);
839 debug_gimple_stmt(stmt);
840 debug_tree(gimple_get_lhs(stmt));
844 if (gimple_code(stmt) != GIMPLE_ASSIGN)
849 debug_tree(gimple_assign_rhs1(stmt));
854 rhs_code = gimple_assign_rhs_code(stmt);
859 lhs = gimple_get_lhs(stmt);
861 rhs1 = gimple_assign_rhs1(stmt);
885 if (!whitelisted_cast(stmt, ptr_lhs_type, ptr_rhs_type))
886 MISMATCH(gimple_location(stmt), "rhs", ptr_lhs_type, ptr_rhs_type);
911 if (!whitelisted_cast(stmt, ptr_lhs_type, op0_type))
912 MISMATCH(gimple_location(stmt), "op0", ptr_lhs_type, op0_type);
924 if (!whitelisted_cast(stmt, ptr_lhs_type, ptr_rhs_type))
925 MISMATCH(gimple_location(stmt), "ssa", ptr_lhs_type, ptr_rhs_type);