This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
c++ and whole-program optimization
- From: "Philippe Suter" <psuter at csail dot mit dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 3 Jun 2008 22:05:55 -0400
- Subject: c++ and whole-program optimization
- Reply-to: psuter at csail dot mit dot edu
Hi everyone,
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?
Thanks in advance,
PS