http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51174
--- Comment #3 from David Edelsohn <dje at gcc dot gnu.org> 2011-11-16 17:59:47
UTC ---
(gdb) print decl
$1 = 0x0
(gdb) where
#0 internal_error (
gmsgid=0x11288a94 "tree check: expected tree that contains %qs structure,
have %qs in %s, at %s:%d") at /farm/dje/src/src/gcc/diagnostic.c:843
#1 0x10051dc8 in tree_contains_struct_check_failed (node=0x0,
en=TS_DECL_COMMON,
file=0x1129cd18 "/farm/dje/src/src/gcc/config/rs6000/rs6000.c",
line=25791, function=0x112a5a28 "rs6000_xcoff_section_type_flags")
at /farm/dje/src/src/gcc/tree.c:8986
#2 0x102d57e8 in rs6000_xcoff_section_type_flags (decl=0x0,
name=0x112a85dc ".tm_clone_table", reloc=3)
at /farm/dje/src/src/gcc/config/rs6000/rs6000.c:25789
#3 0x10340ed4 in get_named_section (decl=0x0,
name=0x112a85dc ".tm_clone_table", reloc=3)
at /farm/dje/src/src/gcc/varasm.c:408
#4 0x10362698 in dump_tm_clone_pairs (tm_alias_pairs=0x30186be8)
at /farm/dje/src/src/gcc/varasm.c:5964
#5 0x10362a9c in finish_tm_clone_pairs ()
at /farm/dje/src/src/gcc/varasm.c:6010
#6 0x10002010 in compile_file () at /farm/dje/src/src/gcc/toplev.c:602
#7 0x100056bc in do_compile () at /farm/dje/src/src/gcc/toplev.c:1931
#8 0x100058e0 in toplev_main (argc=4, argv=0x2ff22258)
at /farm/dje/src/src/gcc/toplev.c:2007
#9 0x10000570 in main (argc=4, argv=0x2ff22258)
at /farm/dje/src/src/gcc/main.c:36
switch_to_section (get_named_section (NULL, ".tm_clone_table", 3));
Why is NULL being passed to get_named_section() as the decl?