4 ms·
Interesting so this means that if someone really want llvm to support an extension (say a C attribute) that GCC supports, then you "just" have to make a contrib
by The_rationalist 7y ago
Interesting so this means that if someone really want llvm to support an extension (say a C attribute) that GCC supports, then you "just" have to make a contribution to the Linux kernel that use the gcc attribute and that is a minimum useful.
Then LLVM will prioritize the support of said attribute.
As such, hardcore developers might become new Linux contributors just as an Indirect (but effective) way to force LLVM/clang to add support for an attribute.
- chc 7y agoWho in the world would do that rather than just supporting both compilers?
- The_rationalist 7y agoYou don't seems to understand that extensions/attributes can have a usefulness that far outweight cross compiler compatibility? Type of reasons: Performance critical; Security; Expressivity; Each of them can be a necessary reason. E.g "polymorphism" in C through transparent unions
- spacepinball 7y agoRational indeed
- sanxiyn 7y agoYes, this is in fact a viable strategy. Source: I contributed a few GCC extension in Clang forced by Linux kernel.