XCOFF doesn't support COMDATs, so clang shouldn't emit them.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
- We should probably update the COMDAT section of the lang ref to mention XCOFF doens't support COMDATS.
- Will we report an error somewhere in the backend if we encounter a COMDAT?
Comment Actions
Will we report an error somewhere in the backend if we encounter a COMDAT?
I hit this when I was doing my static init patch as well: error in backend: COMDAT not yet supported by AIX.
Comment Actions
I will update the langref as suggested.
- Will we report an error somewhere in the backend if we encounter a COMDAT?
As mentioned by @Xiangling_L, we will run into report_fatal_error("COMDAT not yet supported by AIX.").
Comment Actions
LGTM.
llvm/docs/LangRef.rst | ||
---|---|---|
913–914 | really minor nit: The current wording sounds a bit odd to my ear. Maybe either XCOFF and Mach-O platforms or XCOFF and Mach-O don't support COMDATs, ... |
really minor nit: The current wording sounds a bit odd to my ear. Maybe either XCOFF and Mach-O platforms or XCOFF and Mach-O don't support COMDATs, ...