]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2018-03-23 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2018 11:19:49 +0000 (11:19 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2018 11:19:49 +0000 (11:19 +0000)
PR debug/85020
* dwarf2out.c (rtl_for_decl_location): Do not generate RTL early when
we are going to emit early debug for LTO.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258798 138bc75d-0d04-0410-961f-82ee72b054a4

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)