Howdy,
This is something I look into periodically, and each time I find a
solution that's slightly better, but not what I want. I've looked at
the wiki (http://gcc.gnu.org/wiki/DebuggingGCC) many times, so no need
to refer me there. I am trying to debug the C++ front-end, and I took
the wiki's recommendation for building a debuggable compiler
$ make CFLAGS="-g3 -O0" all-stage1
but it did not seem to build the C++ front-end, even though I configured
with --enable-languages=c,c++. There is no $build-dir/gcc/cc1plus and
$build-dir/gcc/cp is empty. Also, the command
$ make install
failed afterward with
/bin/sh: line 1: cd: ./fixincludes: No such file or directory
Any help?
- John