-flto, remove unsued code from output

Klaus Rudolph lts-rudolph@gmx.de
Tue Dec 7 15:03:00 GMT 2010


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 during compile or link?

I am using gcc-4.5.1 for avr target on linux-x86 host.

Regards
 Klaus

-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail



More information about the Gcc mailing list