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: The right way to have a compiler with -DGATHER_STATISTICS


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


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