This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/66657] New: Feature request - assembly output from lto compiler
- From: "kalmquist1 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 Jun 2015 20:35:02 +0000
- Subject: [Bug driver/66657] New: Feature request - assembly output from lto compiler
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66657
Bug ID: 66657
Summary: Feature request - assembly output from lto compiler
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: kalmquist1 at hotmail dot com
Target Milestone: ---
There should be a gcc command line option to generate the assembly language
output of the lto compiler. The -S option doesn't do this because it prevents
the lto compilation phase from running at all.
Currently, the only way to accomplish this is to run the lto compiler directly,
as in the following example:
ld -r -plugin /usr/lib/gcc/x86_64-linux-gnu/4.8/liblto_plugin.so \
-plugin-opt=/bin/true -plugin-opt=-fresolution=out.res in1.o in2.o
/usr/lib/gcc/x86_64-linux-gnu/4.8/lto1 -quiet \
-fresolution=out.res -o out.s -O2 in1.o in2.o
This is ugly and undocumented.