This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compiling gcc in debug
- From: "Vincent R." <forumer at smartmobili dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 06 Apr 2009 16:17:17 +0200
- Subject: compiling gcc in debug
Hi,
When debugging gcc, debugger sometimes seems mad because it jumps from one
place to another
maybe due to the fact that some functions are inlined.
How can I build a gcc in debug mode id without -O2 ?
In gcc Makefile I can see that :
CFLAGS_FOR_BUILD = -g -O2
CXXFLAGS_FOR_BUILD = -g -O2
BOOT_CFLAGS= -g -O2
Maybe I need to pass some flags to configure ?