This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: The right way to have a compiler with -DGATHER_STATISTICS
- From: Dan Nicolaescu <dann at ics dot uci dot edu>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 24 Jun 2003 00:21:40 -0700
- Subject: Re: The right way to have a compiler with -DGATHER_STATISTICS
- References: <1F8E9432-A354-11D7-BC01-000393A6D2F2@physics.uc.edu>
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