[PATCH] D113741: [RFC][DwarfDebug][AsmPrinter] Support emitting function-local declaration for a lexical block

Kristina Bessonova via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 15 12:29:01 PST 2021


krisb added a comment.

In D113741#3190810 <https://reviews.llvm.org/D113741#3190810>, @dblaikie wrote:

> In D113741#3190544 <https://reviews.llvm.org/D113741#3190544>, @dblaikie wrote:
>
>> FWIW this also caused some ThinLTO build failures (linker errors specifically) along the lines of:
>>
>>   (.debug_gnu_pubnames): name lookup table at offset 0x9a5 has a terminator at offset 0x9b3 before the expected end at 0x9f2
>>
>> I don't have a simple/small reproduction at the moment. But would be good to work together/reach out to me if it's not easily discoverable and figure out this issue before recommitting.
>
> Oh, I misread - that this issue was seen on the recommit & hasn't ben reverted yet.
>
> I'll try to reduce a test case, but might be worth reverting in the interim regardless?

If you think it'd be better to revert until the issue gets resolved then okay, let me know and I'll revert it. I can't say more without a reproducer.
But could you please share a way to reproduce the issue? Not small/simple is also okay.



================
Comment at: llvm/test/DebugInfo/Generic/lexical_block_static.ll:1
+; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck --implicit-check-not "{{DW_TAG|NULL}}" %s
+
----------------
MaskRay wrote:
> Somewhat strange the patch introduced new tests with both `-` and `_` filename separators...
> 
> In most components of llvm, `-` is more popular though I can see directories where `_` is more popular.
This happened cause I borrowed some tests from ellis's patch, those ones with '-'.
Sorry, I somehow didn't notice this difference. I'll either fix it in an NFC or in the next recommit if it'll be decided it's better to revert this patch until LTO issues get resolved.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113741/new/

https://reviews.llvm.org/D113741



More information about the llvm-commits mailing list