Bug 41591

Summary: documentation should document interaction of -flto and -fwhole-program
Product: gcc Reporter: Andi Kleen <andi-gcc>
Component: ltoAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: normal CC: burnus, gcc-bugs
Priority: P3 Keywords: documentation
Version: 4.5.0   
Target Milestone: ---   
Host: x86_64-linux Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2009-10-05 14:37:56

Description Andi Kleen 2009-10-05 14:31:28 UTC
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.
Comment 1 Richard Biener 2009-10-05 14:37:56 UTC
Confirmed.
Comment 2 Tobias Burnus 2009-10-05 17:50:51 UTC
Draft patch at http://gcc.gnu.org/ml/gcc-patches/2009-10/msg00300.html,
has room for improvements.
Comment 3 Tobias Burnus 2009-10-06 10:38:27 UTC
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

Comment 4 Tobias Burnus 2009-10-06 11:39:40 UTC
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
Comment 5 Richard Biener 2009-12-11 16:56:18 UTC
Fixed.