From: Richard Biener Date: Fri, 23 Mar 2018 11:19:49 +0000 (+0000) Subject: re PR bootstrap/85020 (gcc fails to bootstrap with profiledbootstrap and --with-build... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=71f70d0c0ca7d5e76c98eaa7c64825ddd46bbfe7;p=gcc.git re PR bootstrap/85020 (gcc fails to bootstrap with profiledbootstrap and --with-build-config=bootstrap-lto) 2018-03-23 Richard Biener 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 577cba628e4..e407bc7afc1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-03-23 Richard Biener + + 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 PR inline-asm/85034 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8c41a8d1776..049be713391 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -19878,6 +19878,7 @@ rtl_for_decl_location (tree decl) in the current CU, resolve_addr will remove the expression referencing it. */ if (rtl == NULL_RTX + && !(early_dwarf && (flag_generate_lto || flag_generate_offload)) && VAR_P (decl) && !DECL_EXTERNAL (decl) && TREE_STATIC (decl)