Re: -flto, remove unsued code from output

2010-12-07 Thread Richard Guenther
On Tue, Dec 7, 2010 at 4:02 PM, Klaus Rudolph wrote: > Hi all, > > I play a bit with lto optimisation. As I see, some functions will be inlined > during link stage which is the expected result. But the function code which > is always inlined is not removed from the output file which will result

-flto, remove unsued code from output

2010-12-07 Thread Klaus Rudolph
Hi all, I play a bit with lto optimisation. As I see, some functions will be inlined during link stage which is the expected result. But the function code which is always inlined is not removed from the output file which will result in larger output files. Any additional option to use with gcc