+2014-11-05 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): Set
+ the SLOC of the node on the call to set_jmpbuf_address_soft emitted
+ on block entry with SJLJ.
+
2014-11-05 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (create_subprog_decl): Move code dealing with
start_stmt_group ();
if (setjmp_longjmp)
- add_stmt (build_call_n_expr (set_jmpbuf_decl, 1,
- build_unary_op (ADDR_EXPR, NULL_TREE,
- gnu_jmpbuf_decl)));
+ {
+ gnu_expr = build_call_n_expr (set_jmpbuf_decl, 1,
+ build_unary_op (ADDR_EXPR, NULL_TREE,
+ gnu_jmpbuf_decl));
+ set_expr_location_from_node (gnu_expr, gnat_node);
+ add_stmt (gnu_expr);
+ }
if (Present (First_Real_Statement (gnat_node)))
process_decls (Statements (gnat_node), Empty,