llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
26.89k stars 11.03k forks source link

[inline asm] .stabs directive support #30482

Open llvmbot opened 7 years ago

llvmbot commented 7 years ago
Bugzilla Link 31134
Version unspecified
OS Windows NT
Blocks llvm/llvm-project#4440
Reporter LLVM Bugzilla Contributor
CC @compnerd,@efriedma-quic,@nickdesaulniers,@paulmenzel

Extended Description

There is no support for the .stabs directive

edwintorok commented 2 years ago

mentioned in issue llvm/llvm-project#4440

c8a49491-047e-486b-ad31-663682af60ea commented 2 years ago

I assume the Linux kernel's usage of .stabs is leftover junk, not actually intentional usage. I'm sure they'd be happy to take a patch to remove the directives.

I am going to inform the Linux kernel maintainers about the problem, but not supporting this in Clang means that older Linux kernels and probably other programs too, can’t be successfully compiled with Clang.

efriedma-quic commented 2 years ago

I assume the Linux kernel's usage of .stabs is leftover junk, not actually intentional usage. I'm sure they'd be happy to take a patch to remove the directives.

c8a49491-047e-486b-ad31-663682af60ea commented 2 years ago

This also affects the Linux kernel 1.

 "unsupported directive '.stabs'"
compnerd commented 7 years ago

LLVM currently has no STABS debugging format support. Im not sure that adding the assembler support for it is useful until such time as it can generate the STABS debug info.

That said, DWARF has almost entirely replaced STABS for debugging. Im not sure that we really want a third debugging format, especially when STABS is officially deprecated in favor of DWARF.