Skip to content

-O -C lto is *not* same to -C opt-level=2 -C lto #22677

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

Closed
lifthrasiir opened this issue Feb 22, 2015 · 2 comments
Closed

-O -C lto is *not* same to -C opt-level=2 -C lto #22677

lifthrasiir opened this issue Feb 22, 2015 · 2 comments

Comments

@lifthrasiir
Copy link
Contributor

Fallout of #21191. -C opt-level=2 sets CodegenOptions::opt_level but -O doesn't, and -C lto path only looks at that. Due to the fallback from LTO path, -O -C lto is currently same to -C opt-level=0 -C lto (!).

@dotdash
Copy link
Contributor

dotdash commented Feb 22, 2015

Thanks for the bug report, this will be fixed by #22530

@lifthrasiir
Copy link
Contributor Author

Ah indeed. This was a duplicate of #22525. Closing.

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

No branches or pull requests

2 participants