https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-10-14 Target Milestone|--- |6.3 Ever confirmed|0 |1 Known to fail| |4.3.5 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. Already GCC 4.3 behaves that way. Must be a feature ;) (I suppose the bug is that _with_ that typedef we emit a DW_AT_comp_dir attribute). GCC 3.2.3 didn't do that. We have: /* Generate the DIE for the compilation unit. */ static dw_die_ref gen_compile_unit_die (const char *filename) { dw_die_ref die; const char *language_string = lang_hooks.name; int language; die = new_die (DW_TAG_compile_unit, NULL, NULL); if (filename) { add_name_attribute (die, filename); /* Don't add cwd for <built-in>. */ if (!IS_ABSOLUTE_PATH (filename) && filename[0] != '<') add_comp_dir_attribute (die); thus absolute paths are supposed to omit it.