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

software: enable link time optimization (LTO) #401

Merged
merged 1 commit into from
Feb 25, 2020

Conversation

mateusz-holenko
Copy link
Collaborator

It turned out that after merging ff2775c to LiteX, -flto works fine with -Os and does not require -lgcc anymore. That's why we are going back to the simplest solution, originally proposed by @mithro and discussed in: #253.

Note: enabling LTO in LiteX requires enabling it in linux-on-litex-vexriscv as well. We have a patch prepared and will create a PR shortly.

Co-authored-by: Pawel Czarnecki <pczarnecki@internships.antmicro.com>
@enjoy-digital
Copy link
Owner

Thanks, merged. I disabled it for LM32 with e2aebb4 since old versions of GCC easily available don't support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants