aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-03-23 11:19:49 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-03-23 11:19:49 +0000
commit71f70d0c0ca7d5e76c98eaa7c64825ddd46bbfe7 (patch)
tree00e2c0770b990f9be992a888058572bfb0083cb3 /gcc
parent9ecdd81a0367ebc18a659811957f31208aa3e925 (diff)
downloadgcc-71f70d0c0ca7d5e76c98eaa7c64825ddd46bbfe7.zip
gcc-71f70d0c0ca7d5e76c98eaa7c64825ddd46bbfe7.tar.gz
gcc-71f70d0c0ca7d5e76c98eaa7c64825ddd46bbfe7.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 577cba6..e407bc7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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>
PR inline-asm/85034
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 8c41a8d..049be71 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)