Add clang patch corresponding to r291701.
This commit is contained in:
parent
80fe6bcf09
commit
df5b54dee1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291771
21
contrib/llvm/patches/patch-10-clang-cc1as-dwarf2.diff
Normal file
21
contrib/llvm/patches/patch-10-clang-cc1as-dwarf2.diff
Normal file
@ -0,0 +1,21 @@
|
||||
In assembler mode, clang defaulted to DWARF3, if only -g was specified.
|
||||
Change this to DWARF2, in the simplest way possible. (Upstream, this
|
||||
was fixed in clang trunk r250173, but this was done along with a lot of
|
||||
shuffling around of debug option handling, so it cannot be applied
|
||||
as-is.)
|
||||
|
||||
Introduced here: https://svnweb.freebsd.org/changeset/base/291701
|
||||
|
||||
Index: tools/clang/tools/driver/cc1as_main.cpp
|
||||
===================================================================
|
||||
--- tools/clang/tools/driver/cc1as_main.cpp
|
||||
+++ tools/clang/tools/driver/cc1as_main.cpp
|
||||
@@ -141,7 +141,7 @@ struct AssemblerInvocation {
|
||||
RelaxAll = 0;
|
||||
NoExecStack = 0;
|
||||
FatalWarnings = 0;
|
||||
- DwarfVersion = 3;
|
||||
+ DwarfVersion = 2;
|
||||
}
|
||||
|
||||
static bool CreateFromArgs(AssemblerInvocation &Res,
|
Loading…
Reference in New Issue
Block a user