-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add support for Link-Time Optimization #278
Conversation
Readme.md
Outdated
@@ -182,6 +182,10 @@ set substitute-path /usr/src/debug/gcc /path/to/gcc-repo/gcc | |||
|
|||
TODO(antoyo): but that's not what I remember I was doing. | |||
|
|||
### How to debug GCC LTO | |||
|
|||
Run do the command with `-v -save-temps` and then extract the `lto1` line from the output and run that under the debugger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to wire up -Csave-temps
to GCC's -save-temps
option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember what's the output of GCC's -save-temps
. Does cg_llvm output LLVM-specific stuff (except some stuff done manually like the bitcode used for LTO)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LLVM doesn't produce intermediate files afaik. It keeps everything in memory until rustc explicitly tells it to either write bitcode or an object files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, so I'll keep it that way for now and we'll see later.
9d177d3
to
1da9a51
Compare
6266d40
to
aa701c0
Compare
8679c60
to
fd4dee2
Compare
31e7433
to
47de037
Compare
9d62918
to
6b6000b
Compare
9aa28b0
to
e00e89c
Compare
e00e89c
to
62867dc
Compare
Fix #64.