e.g. when -fwhole-program should be specified, at compile or at line time and that it applies to the object files I figured it out using the source and #gcc, but it would be better in the texinfo file.
Confirmed.
Draft patch at http://gcc.gnu.org/ml/gcc-patches/2009-10/msg00300.html, has room for improvements.
Subject: Bug 41591 Author: burnus Date: Tue Oct 6 10:38:12 2009 New Revision: 152490 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152490 Log: 2009-10-06 Tobias Burnus <burnus@net-b.de> PR lto/41591 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the -flto and -fwhole-program flags can be combined. Modified: trunk/gcc/ChangeLog trunk/gcc/doc/invoke.texi
Andi, is the current wording sufficient or is something missing/unclear? http://gcc.gnu.org/viewcvs/trunk/gcc/doc/invoke.texi?r1=152490&r2=152489&pathrev=152490
Fixed.