http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32998
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-10-05 09:48:32 UTC --- I agree, it would be a good idea to append all preprocessing and compilation options, except for -I/-i* paths (and leave out driver/link options like -B, -V, -L, -Wl, too), to DW_AT_producer; it would solve the issue that -g and -g0 compiled objects wouldn't result in different object files.