(1) Restore explicit specification of
`group.*.demangler=/opt/compiler-explorer/clang-trunk/bin/llvm-cxxfilt`
for all clang compiler groups, except bpf and windows.
(2) Make the ClangCompiler` constructor adjust the path of
`llvm-cxxfilt`, so that a compiler-local version is preferred, if one
exists.
(3) Pass-by update: bump the version of llvmDisassembler from clang-14
to clang-18.1.
Hopefully this addresses all demangling issues known so far.
Additionally:
- the includes for the mp-units trunk are updated for the next release supporting C++ modules,
- mp-units releases reordered to provide the latest one on top in the IDE
https://llvm.org/docs/CommandGuide/llvm-dwarfdump.html
This dumps the DWARF debugging information in a human readable form:
```
<source>: file format ELF64-x86-64
.debug_info contents:
0x00000000: Compile Unit: length = 0x00000063 version = 0x0004 abbr_offset = ...
0x0000000b: DW_TAG_compile_unit
DW_AT_producer ("GNU C17 9.4.0 ...)
```
This tool would be useful to have when comparing the debug output of two
compiler versions or compiler targets. For instance I wanted to find out
recently how AArch64 and X86 targets represent TLS variables.
The tool runs on the compiled binary, so is post compilation. If the
binary
has no debug information the tool does not crash, it just tells you that
there is no information.
To fit the other llvm/clang tools, I've just added an "llvm-dwarfdump
(trunk)"
like llvm-mca has done. Added it to c/c++/objc/objc++ (open CL can't
compile
to binary so skipped those). MSVC is excluded because it produces PDB
files
instead.
The tool works for at least ELF and XCOFF files, I haven't been able to
test
any others.
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->
Similar to #3612, starting with GCC 14, using `<stacktrace>` now
requires linking to `libstdc++exp.a`.
I added the autodetect to ObjC++ as well because `stdc++_libbacktrace`
is also present in that file.
Ref: https://gcc.gnu.org/onlinedocs/libstdc++/manual/using.html
Adds 12.3.0 for 20 cross targets.
Adds 11.4.0 for 4 targets.
Not listing all languages as it depends on the targets, but the goal is
always to enable as much as possible.
fixes#5088fixes#5087
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Add needed config for 22 cross gcc bumped to newly released 13.1.0.
Also introduce the m68k target (+ add the clang alias to have it listed)
fixes#4987 and #4904
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Currently only list GCC compilers as a first step.
Will add clang in a followup change.
Port gcc.js to Typescript (simple renaming).
Package the objectivec language support for Monaco.
Add very basic example. Something more objc/objc++ specific would be better.
fixes#2942
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>