This is the mail archive of the gcc-help@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: c++ and whole-program optimization


On Tue, Jun 3, 2008 at 22:05, Philippe Suter <psuter@csail.mit.edu> wrote:

> I tried compiling a C++ project using the --combine and
> --whole-program flags, and passing all source files at once, but I get
> linker errors for essentially all functions called from main(). I seem
> to remember that I read somewhere that --combine and --whole-program
> only work with C code.. Is this a confirmed fact and the reason I'm
> getting these errors, or am I missing something?

Yes.  The --combine option only ever worked in C.  We are working on
proper link-time optimization support, but this will not be ready for
a while.  See http://gcc.gnu.org/wiki/whopr for details.


Diego.


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