http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51916
--- Comment #5 from Aldy Hernandez <aldyh at redhat dot com> 2012-01-20 20:03:09 UTC --- > I have never done that!-(I guess I have to pass something like CFLAGS and > CXXFLAGS in configure or make). What is the official way to do it? From the Debugging GCC wiki (http://gcc.gnu.org/wiki/DebuggingGCC): To build a debuggable compiler, configure the compiler normally and then make STAGE1_CFLAGS="-g -O0" all-stage1