On Wed, Jul 28, 2021 at 3:04 PM Andrew Stubbs <a...@codesourcery.com> wrote: > > This patch follows up my previous patch and supports more variants of > LLVM 12. > > There are still other incompatibilities with LLVM 12, but this at least > the ELF attributes should now automatically tune to any LLVM 9, 10, or > 12 assembler (It would be nice if one set of options would just work > everywhere, but no). > > LLVM 11 was not tested, but is broken in other ways in any case. LLVM 13 > (dev) needs more work. > > Unfortunately, the need for configure tests and the CLI instability > within the LLVM 12 release branch means that GCC probably needs to be > rebuilt whenever LLVM is upgraded, even for minor versions.
Is it possible to handle some incompatibilities with command line arguments to llvm-mc in a wrapper script that could dispatch based on the installed llvm-mc version? Or maybe some specs magic that passes down -mllvm-mc-version=XYZ from a %{llvm-mc-version} specs handler that somehow queries the installed llvm-mc? Or is the llvm-mc version not enough to decide things? I realize this still needs adjustments for each new llvm-mc version that pops up. Richard. > Andrew