Skip to content

Fix LTO & -O2 offset out of range #90865

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

swift-tk
Copy link
Collaborator

@swift-tk swift-tk commented May 30, 2025

The arch.shared_interrupt.lto.speed compile fail on apollo5 platform.
Remove ldr instruction and pass function pointer by input operand.

This PR could fix #90777.

The arch.shared_interrupt.lto.speed compile fail on apollo5 platform.
Remove ldr instruction and pass function pointer by register.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
Copy link

@swift-tk
Copy link
Collaborator Author

This wouldn’t work for platform that can take only two input operands… Any suggestion on making the two function pointer less PC relative so it doesn’t exceed ldr offset?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARM ARM (32-bit) Architecture
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arch.shared_interrupt.lto.speed compile fail on apollo5 platform
2 participants