We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang does not seem to support gcc's __symver__ attribute (also spelled symver). It would be nice if it did.
__symver__
symver
gcc documentation: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes (sorry, I can't seem to link to a specific entry - it's about 4/5th down)
My workaround looks like this:
#ifdef __clang__ __asm__(".symver foo,foo@@V1.2.3"); #else __attribute__((__symver__("foo@@V1.2.3"))) #endif void foo(void) {}
Other people/projects seem to hit this as well, ex. https://github.com/OpenMandrivaAssociation/kernel-rc/blob/087b62e4c6c036c4cf79558891b6851a67b2f684/linux-5.16-clang-no-attribute-symver.patch
The text was updated successfully, but these errors were encountered:
@llvm/issue-subscribers-clang-frontend
Sorry, something went wrong.
No branches or pull requests
clang does not seem to support gcc's
__symver__
attribute (also spelledsymver
). It would be nice if it did.gcc documentation: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes (sorry, I can't seem to link to a specific entry - it's about 4/5th down)
My workaround looks like this:
Other people/projects seem to hit this as well, ex. https://github.com/OpenMandrivaAssociation/kernel-rc/blob/087b62e4c6c036c4cf79558891b6851a67b2f684/linux-5.16-clang-no-attribute-symver.patch
The text was updated successfully, but these errors were encountered: