https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90575
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Stephan Bergmann from comment #3) > Or, to put it differently: It looks odd that while `gcc -gsplit-dwarf -c > test.c -o /path/test.o` puts test.dwo next to test.o into /path/, `gcc > -gsplit-dwarf test.c -o /path/test` puts it into cwd. probably a better "default" than putting it behind the temporary object file in $TMPDIR ;) But yeah... another fallback would be the linker output location. That said, -gsplit-dwarf is mostly unmaintained these days...