http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47650

--- Comment #19 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-15 
15:59:44 UTC ---
All looks good to me with your C testcase:

gcc> gdb --args ./cc1 -quiet t.i
(gdb) b gimplify_function_tree
Breakpoint 5 at 0x855ac4: file /space/rguenther/src/svn/trunk/gcc/gimplify.c,
line 7820.
(gdb) run
Breakpoint 5, gimplify_function_tree (fndecl=0x7ffff5b49000)
    at /space/rguenther/src/svn/trunk/gcc/gimplify.c:7820
7820      gcc_assert (!gimple_body (fndecl));
(gdb) call debug_generic_expr (fndecl->common.type)
int <T357> (struct 
{
  double dvar;
  int ivar;
} *)
(gdb) call debug_generic_expr (fndecl)
myfunc
(gdb) c
Continuing.

Breakpoint 5, gimplify_function_tree (fndecl=0x7ffff5b29f00)
    at /space/rguenther/src/svn/trunk/gcc/gimplify.c:7820
7820      gcc_assert (!gimple_body (fndecl));
(gdb) call debug_generic_expr (fndecl)
GetFunctionPointer
(gdb) call debug_generic_expr (fndecl->common.type)
void (*Handler) (int, void *) <T352> (void)
(gdb) c
Continuing.

Breakpoint 3, 0x00007ffff63ca250 in exit () from /lib64/libc.so.6

Reply via email to