Commit cd177257 by Eric Botcazou Committed by Eric Botcazou

decl.c (gnat_to_gnu_entity): Do not generate the special PARM_DECL for an Out…

decl.c (gnat_to_gnu_entity): Do not generate the special PARM_DECL for an Out parameter in LTO mode.

	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: Do not
	generate the special PARM_DECL for an Out parameter in LTO mode.

From-SVN: r192667
parent 0b21f5d3
2012-10-22 Eric Botcazou <ebotcazou@adacore.com> 2012-10-22 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: Do not
generate the special PARM_DECL for an Out parameter in LTO mode.
2012-10-22 Eric Botcazou <ebotcazou@adacore.com>
PR bootstrap/54820 PR bootstrap/54820
* gcc-interface/Make-lang.in (GCC_LINK): Remove hardcoded options. * gcc-interface/Make-lang.in (GCC_LINK): Remove hardcoded options.
......
...@@ -1503,7 +1503,11 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) ...@@ -1503,7 +1503,11 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
the VAR_DECL. Suppress debug info for the latter but make sure it the VAR_DECL. Suppress debug info for the latter but make sure it
will live on the stack so that it can be accessed from within the will live on the stack so that it can be accessed from within the
debugger through the PARM_DECL. */ debugger through the PARM_DECL. */
if (kind == E_Out_Parameter && definition && !optimize && debug_info_p) if (kind == E_Out_Parameter
&& definition
&& debug_info_p
&& !optimize
&& !flag_generate_lto)
{ {
tree param = create_param_decl (gnu_entity_name, gnu_type, false); tree param = create_param_decl (gnu_entity_name, gnu_type, false);
gnat_pushdecl (param, gnat_entity); gnat_pushdecl (param, gnat_entity);
......
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