Commit 0c8af82a by Eric Botcazou Committed by Eric Botcazou

* gcc-interface/trans.c (Subprogram_Body_to_gnu): Initialize locus.

From-SVN: r255603
parent 692317f4
2017-12-13 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Subprogram_Body_to_gnu): Initialize locus.
2017-12-13 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (process_freeze_entity): Be prepared for a
package without body.
......
......@@ -3773,7 +3773,8 @@ Subprogram_Body_to_gnu (Node_Id gnat_node)
}
/* Set the line number in the decl to correspond to that of the body. */
Sloc_to_locus (Sloc (gnat_node), &locus);
if (!Sloc_to_locus (Sloc (gnat_node), &locus))
locus = input_location;
DECL_SOURCE_LOCATION (gnu_subprog_decl) = locus;
/* If the body comes from an expression function, arrange it to be inlined
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment