[Bug driver/66657] New: Feature request - assembly output from lto compiler
kalmquist1 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 24 20:35:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list