Yes, this is in fact a viable strategy. Source: I contributed a few GCC extension in Clang forced by Linux kernel.
Re:LLVM 9.0
by spacepinball on Thursday September 19, 2019 @08:54PM
(#21022291)
Rational indeed
Who in the world would do that rather than just supporting both compilers?
Re:LLVM 9.0
by The_rationalist on Thursday September 19, 2019 @05:07PM
(#21020781)
You 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
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.