The right way to have a compiler with -DGATHER_STATISTICS

Dan Nicolaescu dann@ics.uci.edu
Tue Jun 24 13:26:00 GMT 2003


Andrew Pinski <pinskia@physics.uc.edu> writes:

  > What is the right way to compile gcc with -DGATHER_STATISTICS which
  > enables gathering of some more statistics?
  > On powerpc-apple-darwin6.6 I tried `make CFLAGS='-O2 -g 
  > -DGATHER_STATISTICS' ' but every time I tried I get an error
  > when libstdc++ is building the PCH for the testsuite.
  > I also tried make BOOT_CFLAGS='-O2 -g -DGATHER_STATISTICS' bootstrap
  > and that caused the same error.

It can be done by defining GATHER_STATISTICS in all the C files that
use it. It's a hack, but it works. 
Adding the define to config.h after configuring, might also work, I
haven't test it though. 

        --dan



More information about the Gcc mailing list