Commit 71f70d0c by Richard Biener Committed by Richard Biener

re PR bootstrap/85020 (gcc fails to bootstrap with profiledbootstrap and…

re PR bootstrap/85020 (gcc fails to bootstrap with profiledbootstrap and --with-build-config=bootstrap-lto)

2018-03-23  Richard Biener  <rguenther@suse.de>

	PR debug/85020
	* dwarf2out.c (rtl_for_decl_location): Do not generate RTL early when
	we are going to emit early debug for LTO.

From-SVN: r258798
parent 9ecdd81a
2018-03-23 Richard Biener <rguenther@suse.de>
PR debug/85020
* dwarf2out.c (rtl_for_decl_location): Do not generate RTL early when
we are going to emit early debug for LTO.
2018-03-23 Jakub Jelinek <jakub@redhat.com> 2018-03-23 Jakub Jelinek <jakub@redhat.com>
PR inline-asm/85034 PR inline-asm/85034
......
...@@ -19878,6 +19878,7 @@ rtl_for_decl_location (tree decl) ...@@ -19878,6 +19878,7 @@ rtl_for_decl_location (tree decl)
in the current CU, resolve_addr will remove the expression referencing in the current CU, resolve_addr will remove the expression referencing
it. */ it. */
if (rtl == NULL_RTX if (rtl == NULL_RTX
&& !(early_dwarf && (flag_generate_lto || flag_generate_offload))
&& VAR_P (decl) && VAR_P (decl)
&& !DECL_EXTERNAL (decl) && !DECL_EXTERNAL (decl)
&& TREE_STATIC (decl) && TREE_STATIC (decl)
......
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