http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50602
--- Comment #6 from Andi Kleen <andi-gcc at firstfloor dot org> 2011-10-09 04:05:52 UTC --- i changed the code now to save ret_val in a volatile global. This is a bit better (gdb) p saved_ret_val $5 = (volatile tree) 0x2afc557b68c0 (gdb) p result $6 = (tree_node *) 0x2afbfb754a00 Still not sure how to print them, maybe stderr is broken. Looking at raw output I see one of them is a VAR_DECL and the other a RESULT_DECL (gdb) p result->decl_minimal.uid $9 = 83837 (gdb) p saved_ret_val->decl_minimal.uid $10 = 3599083 (gdb) p cfun->decl->decl_minimal.uid $3 = 83835 Searching for the second uid in the dump files I see it first in 045i.whole-program: <bb 7>: return D.3599083; and the first doesn't appear in any file (that means the current pass added it?) The third is first in 049.inline