https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100446
--- Comment #13 from R. Diez <rdiez-2006 at rd10 dot de> --- Yes, sorry I forgot about that separate bug I forgot. I've added a reference to it in the project's configure.ac next to the -g2 compiler flag, so that I do not forget it again. The -g3 .elf file does contain .debug_macro sections with the macros which GDB cannot find. I do not know much about debug information, but I find it weird that GDB can read -g3 macro information generated without LTO, but it cannot as soon as LTO comes into play. Another indication is the big reduction in .elf size with LTO, when the .bin file is just a little smaller. Do you have any idea what LTO does so very differently with regards to -g3 debugging information?