[cfe-dev] [RFC][Clang] Flag for Switching between C++ ABIs
Chris Hanson via cfe-dev
cfe-dev at lists.llvm.org
Thu Aug 6 00:35:48 PDT 2020
On Aug 5, 2020, at 4:11 PM, Leonard Chan via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> The flag would look something like `-fc++-abi=` and override the default C++ ABI selected by the target. It's up to the user to make sure that the ABI and target combination makes sense.
I like this idea and I know people in the retrocomputing and alt-OS community would find it useful. (Example: Haiku binary compatibility with BeOS is currently implemented by using a very old GCC. This would allow easier experimentation with implementing a compatible ABI in a modern compiler.)
Should it be specific to the C++ ABI though? Or should there be an equivalent for C ABI? (Example: The LLVM 68000 back-end that's in progress currently targets the SVR4 ABI, but users of the compiler will definitely want support for Amiga, Atari, classic Mac OS, Sun, HP, etc. ABIs.) I suppose for C this is implied by the target triple, but it might be useful to have a separate switch for it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev