]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix link failure with debug info in LTO mode
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 25 Feb 2020 11:34:00 +0000 (12:34 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 25 Feb 2020 11:44:19 +0000 (12:44 +0100)
commita6b74eaedf6199a5431504a77ecacb0f9efa53f9
tree0c73ab4e138638aa828be9b8bd8fda6992ec33af
parent468664e1b784988ef22cc939c72e3e3d4a4c156e
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.
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/lto24.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto24_pkg1.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto24_pkg2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto24_pkg2.ads [new file with mode: 0644]