This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Issue with LTO/-fwhole-program


On 13/06/2010 23:22, David Brown wrote:

> I agree that banning common symbols is not a complete solution.  But
> perhaps it may be a partial solution until some more complete solution
> is found and implemented?
> 
> How about having a warning flag -Wcommon-lto 

> Incidentally, the original poster used -fwhole-program.  Is this
> conflict only an issue when the -fwhole-program flag is used?  If that's
> the case, then the warning could be conditional on that flag too,
> meaning even rarer circumstances when false positives would be issued.

  Yes; it's not really a problem that is related to common symbols at all,
it's basically to do with mixing LTO and non-LTO objects when -fwhole-program,
if I understand right.

    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]