I find that I can not print local variables (none that is) if I use 4.4 for compiling CP2K, while it goes fine with 4.3.
Reproducing requires these steps: wget http://www.pci.uzh.ch/vandevondele/tmp/CP2K_2008_12_03.tgz tar -xzvf CP2K_2008_12_03.tgz cd CP2K_2008_12_03/ # # change FCFLAGS to read # FCFLAGS = -O0 -g # be sure lapack/blas are available for linking # vi Makefile make gdb ./cp2k.sopt (gdb) run test.inp ^C Program received signal SIGINT, Interrupt. 0x00000000006bb92a in __distribution_optimize_MOD_update_cost_cpu_diff () at distribution_optimize.F:361 361 IF (local_cols_new(i).NE.local_cols_old(i)) THEN (gdb) print i No symbol "i" in current context. (gdb) info locals No locals. wherever one breaks, local symbols can not be found. The same goes fine using 4.3.1 -- Summary: [4.4 Regression] unable to debug CP2K (no local symbols) Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jv244 at cam dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39073