http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48229
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-23 11:56:05 UTC --- I think it is a bad idea to add DW_AT_producer to .debug_type units. Making each .debug_types addition 4 bytes longer is bad for debug info size, we might have many thousands DW_TAG_type_units for each source. I think you can safely use referring DW_TAG_compile_unit's DW_AT_producer for your purposes. While it is true that .debug_types sections in the end comes from different *.o file and be produced by different compiler, it will be referenced by the current CU only if it hashes the same, thus has the same content (disregarding hash collisions, in which case you are in very bad trouble, but you are in that very bad trouble no matter whether you just want to make sure it was produced by the same or compatible producer - when hash collision happens, it might refer to completely unrelated type).