diff options
author | dim <dim@FreeBSD.org> | 2015-12-04 17:23:19 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-12-04 17:23:19 +0000 |
commit | 9cb329cc6d385b68fd0f2433ae79b9e5614439ad (patch) | |
tree | d58c59ab4c4404c6a8c7adcdbc8bb8d7a0480ba5 | |
parent | 24858cf7bbd333bc022ef13635e8f440888340d7 (diff) | |
download | FreeBSD-src-9cb329cc6d385b68fd0f2433ae79b9e5614439ad.zip FreeBSD-src-9cb329cc6d385b68fd0f2433ae79b9e5614439ad.tar.gz |
Add clang patch corresponding to r291701.
-rw-r--r-- | contrib/llvm/patches/patch-10-clang-cc1as-dwarf2.diff | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/llvm/patches/patch-10-clang-cc1as-dwarf2.diff b/contrib/llvm/patches/patch-10-clang-cc1as-dwarf2.diff new file mode 100644 index 0000000..eb00168 --- /dev/null +++ b/contrib/llvm/patches/patch-10-clang-cc1as-dwarf2.diff @@ -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, |