This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/47650] wrong output of print_generic_decl() called from a plugin
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 15 Mar 2011 16:00:04 +0000
- Subject: [Bug middle-end/47650] wrong output of print_generic_decl() called from a plugin
- Auto-submitted: auto-generated
- References: <bug-47650-4@http.gcc.gnu.org/bugzilla/>
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