re PR bootstrap/85020 (gcc fails to bootstrap with profiledbootstrap and --with-build...
authorRichard Biener <rguenther@suse.de>
Fri, 23 Mar 2018 11:19:49 +0000 (11:19 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 23 Mar 2018 11:19:49 +0000 (11:19 +0000)
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

gcc/ChangeLog
gcc/dwarf2out.c

index 577cba628e4b7775642c70bac80c13a46d231cf1..e407bc7afc1bf9b42e20747e8c61991c80e5c9a4 100644 (file)
@@ -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
index 8c41a8d17762261504036930d4efd9d26d091e1f..049be713391b23be5c73e2a437481deea2c0ad3f 100644 (file)
@@ -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)