GCC is freezing when compiling a big TU with the -g option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm compiling a C++ TU that after preprocessing is 50000 lines big (most
of the lines are from header files). It compiles fine without '-g' but
when I use the -g option, the compiler freezes. I used the option '-Q'
to try to figure out where the problem was located. The compilation gets
stuck while compiling functions inside class declarations in the header
files. It does not seems to be some function in particular that is
causing the problem as if I reorder the header files inclusion, the
compiler is going to stop in a new place.

The GCC version that I am using is 3.2

Also, I have observed weird things such as I see destructors and
constructors being compiled like 4 times in the '-Q' output ie:

virtual OutputFormat::~OutputFormat()
OutputFormat::~OutputFormat()
virtual OutputFormat::~OutputFormat()
virtual OutputFormat::~OutputFormat()

Is this something normal? I think that the issue might be that the
compiler is running out of memory. I also see this in the output:

{GC 27652k -> 24958k}

Any suggestion on what I could try to fix the problem?

Thank you,
Olivier Langlois
http://www.olivierlanglois.net



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux