From c5028d807fd315cfeb2f1d44e5ffb1c6ca470aff Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Wed, 30 Oct 2013 19:53:42 +0100 Subject: re PR other/33426 (Support of #pragma ivdep) 2013-10-30 Tobias Burnus gcc/cp/ PR other/33426 * cp-tree.h (RANGE_FOR_IVDEP): Define. (cp_convert_range_for, finish_while_stmt_cond, finish_do_stmt, finish_for_cond): Take 'bool ivdep' parameter. * cp-array-notation.c (create_an_loop): Update call. * init.c (build_vec_init): Ditto. * pt.c (tsubst_expr): Ditto. * parser.c (cp_parser_iteration_statement, cp_parser_for, cp_parser_range_for, cp_convert_range_for): Update calls. (cp_parser_pragma): Accept GCC ivdep for 'while' and 'do'. * semantics.c (finish_while_stmt_cond, finish_do_stmt, finish_for_cond): Optionally build ivdep annotation. gcc/testsuite/ PR other/33426 * g++.dg/vect/pr33426-ivdep-2.cc: New. * g++.dg/vect/pr33426-ivdep-3.cc: New. * g++.dg/vect/pr33426-ivdep-4.cc: New. gcc/ PR other/33426 * gcc/tree-cfg.c (replace_loop_annotate): Replace warning by warning_at. From-SVN: r204223 --- gcc/tree-cfg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/tree-cfg.c') diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index cf8200a..d705657 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -307,7 +307,8 @@ replace_loop_annotate () if ((annot_expr_kind) tree_low_cst (gimple_call_arg (stmt, 1), 0) != annot_expr_ivdep_kind) continue; - warning (0, "ignoring % annotation"); + warning_at (gimple_location (stmt), 0, "ignoring % " + "annotation"); stmt = gimple_build_assign (gimple_call_lhs (stmt), gimple_call_arg (stmt, 0)); gsi_replace (&gsi, stmt, true); -- cgit v1.1