Skip to content
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

Fix spurious unused function warning when compiling crc32 with clang and ifunc support #53897

Merged
merged 4 commits into from
Jul 24, 2024

Conversation

Zentrik
Copy link
Member

@Zentrik Zentrik commented Mar 29, 2024

Clang incorrectly warns functions only used through ifuncs are unused, llvm/llvm-project#63957.

…and ifunc support

Clang incorrectly warns functions only used through ifuncs are unused, llvm/llvm-project#63957.
@giordano giordano added the building Build system, or building Julia or its dependencies label Mar 29, 2024
@jessicarod7
Copy link

Would suggest caution before considering this PR, given the ifunc-based backdoor also noted in the mentioned PR. More info: https://www.openwall.com/lists/oss-security/2024/03/29/4

Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine. I have been meaning to turn off this warning for a while myself

Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though come to think of it, doesn't clang permit ifunc now, so we can also enable the feature attributes instead now?

@Zentrik
Copy link
Member Author

Zentrik commented Mar 29, 2024

Not sure what couponing attributes are, so don't think I can help much in that regard.

@gbaraldi
Copy link
Member

gbaraldi commented Mar 29, 2024

Also suspicious that the LLVM issue is by the xz backdoor person, but the change LGTM

@vtjnash
Copy link
Member

vtjnash commented Mar 30, 2024

Wording seems to have been some autocorrect issue (now fixed above). Looks like MaskRay is fixing this upstream now in clang, so we may not need this (or we might be able to replace this with the UNUSED macro that we have used elsewhere to override the warning)

@Zentrik
Copy link
Member Author

Zentrik commented Apr 11, 2024

Presumably, the fix to clang won't get backported so it would be nice to fix this.

Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request Apr 21, 2024
Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request Apr 21, 2024
Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request Apr 21, 2024
Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request Apr 21, 2024
@fatteneder fatteneder merged commit a3cbb18 into JuliaLang:master Jul 24, 2024
7 checks passed
Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request Jul 26, 2024
Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request Jul 28, 2024
lazarusA pushed a commit to lazarusA/julia that referenced this pull request Aug 17, 2024
…and ifunc support (JuliaLang#53897)

Clang incorrectly warns functions only used through ifuncs are unused,
llvm/llvm-project#63957.
Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request Aug 22, 2024
Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request Aug 25, 2024
Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants