------- Comment #14 from rguenth at gcc dot gnu dot org 2010-01-01 12:31 ------- What about -fdump-rtl-* and -fdump-ipa-*? They have the same problem.
Note that this still wouldn't get what I would expect when doing gcc -flto -fdump-tree-all -O2 -o t t.c as you'd get a t.c.*.optimized tree dump that has nothing to do with what ends up in the executable. So I don't think the patch would be a strict improvement but instead it causes another confusion (not that the current situation is not confusing but at least it is known). I would like to see an idea how to address the dump-files-in-/tmp with tempfile names issue instead (I'd unconditionally use object file names as dumpbase as -save-temps or separating compiling and linking would do). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41564