-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
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
optimize attribute ignored by clang 11 #162
Comments
It looks like that clang doesn't support this function attribute. |
Thanks tclin914. optnone seems to work. Too bad, however, that the general attribute "optimize" does not work, for compatibility with gcc. |
am11
pushed a commit
to am11/llvm-project
that referenced
this issue
Mar 29, 2022
Do this unconditionally because there's no scenario where we would need executable stack for managed code.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm using clang 11.0.0 (MacOSX Xcode build).
The following code:
__attribute__((optimize("-O0"))) int bench_fun() { return 0 ; }
gives the following warning:
Is this a bug, or a feature? If it's a feature, how can I obtain the same effect?
Best regards,
dpotop
The text was updated successfully, but these errors were encountered: