aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2020-02-25 12:34:00 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2020-02-25 12:39:14 +0100
commit2877ad9ac28e1c7f0a6e643ca8f03f795e0f4985 (patch)
treeab11b11c923f8fedf71528054fa87a769c656971 /gcc/dwarf2out.c
parent81ef67c10a3db7d789c7be653dba0a6e6a3e9958 (diff)
downloadgcc-2877ad9ac28e1c7f0a6e643ca8f03f795e0f4985.zip
gcc-2877ad9ac28e1c7f0a6e643ca8f03f795e0f4985.tar.gz
gcc-2877ad9ac28e1c7f0a6e643ca8f03f795e0f4985.tar.bz2
Fix link failure with debug info in LTO mode
This fixes a regression whereby the program fails to link with debug info in LTO mode because of an undefined reference to a symbol coming from the object files containing the early debug info. * dwarf2out.c (dwarf2out_size_function): Run in early-DWARF mode.
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index fe46c7e..1fcb19a 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -27610,6 +27610,7 @@ dwarf2out_inline_entry (tree block)
static void
dwarf2out_size_function (tree decl)
{
+ set_early_dwarf s;
function_to_dwarf_procedure (decl);
}