[PATCH] D148953: [llvm][ADT] Fix Any linker error with multiple compilers
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 24 13:57:48 PDT 2023
dblaikie added a comment.
In D148953#4291600 <https://reviews.llvm.org/D148953#4291600>, @sebastian-ne wrote:
> Thanks for the quote from wikipedia!
>
>> Would this not be an ABI bug in those compilers that needs to be fixed there?
>
> One could stand on the point that if objects from different compilers are linked, the user needs to supply `-f[no-]zero-initialized-in-bss` to make sure they behave the same.
> As this instance of such behavior is easy enough to fix in code, I think we can do that in LLVM.
I don't think we should be working around ABI mismatches in compilers - the longer-term solution should be that we only use ABI compatible compilers, or use compilers in ABI-compatible ways (with the right flags, if that's what's required).
What are the specifically incompatible compilers/versions/flags?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148953/new/
https://reviews.llvm.org/D148953
More information about the llvm-commits
mailing list