On Feb 12, 2012, at 12:51 AM, Ian Lance Taylor wrote: > Amittai Aviram <amittai.aviram@xxxxxxxx> writes: > >> Suppose I wish to build GCC with debug information. Where and how should I add the "-g" option? Should I add this to some file before running configure, or after? Thanks! > > If you build gcc, it will normally be built with -g. That's what the Makefile looked like, but, just now, I tried this: gdb path-to-my-just-built-gcc/bin/gcc Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from path-to-my-just-built-gcc/bin/gcc...done. (gdb) b lower_reduction_clauses Function "lower_reduction_clauses" not defined. Make breakpoint pending on future shared library load? (y or [n]) n I see that the function lower_reduction_clauses, in gcc/omp-low.c, does not have the "inline" keyword. Did the gcc I used to build this GCC inline it as part of -O2? Thanks. Amittai