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

Clang 19: Two new warnings when linking with full LTO: "stack frame size...", "can't find switch jump table" #2064

Open
computerix opened this issue Jan 13, 2025 · 2 comments
Labels
[BUG] llvm A bug that should be fixed in upstream LLVM Upstream report pending This bug needs to be reported upstream [WORKAROUND] Submitted This bug has a submitted workaround

Comments

@computerix
Copy link

See https://bugzilla.kernel.org/show_bug.cgi?id=219686

@nathanchance
Copy link
Member

Thanks for the report.

I posted some initial thoughts on the objtool warning on the thread upstream, including a bisect:

https://lore.kernel.org/[email protected]/

I am working on getting a trivial reproducer to report upstream but Josh has sent a patch that should allow objtool to ignore this case as it is not really harmful, just dead code in the binary (as far as I understand it at least):

https://lore.kernel.org/ee25c0b7e80113e950bd1d4c208b671d35774ff4.1736891751.git.jpoimboe@kernel.org/

I think the stack frame warning is #2048 and I think I saw a recent mailing list patch.

@nathanchance nathanchance added Upstream report pending This bug needs to be reported upstream [WORKAROUND] Submitted This bug has a submitted workaround [BUG] llvm A bug that should be fixed in upstream LLVM labels Jan 15, 2025
@computerix
Copy link
Author

Yes, the stack frame size warning is #2048 and the patch in #2048 solves it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[BUG] llvm A bug that should be fixed in upstream LLVM Upstream report pending This bug needs to be reported upstream [WORKAROUND] Submitted This bug has a submitted workaround
Projects
None yet
Development

No branches or pull requests

2 participants