Adriaan van Os wrote:
This results in:
<snip>
<tree_list 0x44018080 purpose <integer_cst 0x44018060 type <enumeral_type 0x434e28c0 Ioselectevents> constant invariant tree_5 1> value <integer_cst 0x44018060 1>>
That looks fine. I think I have identified the problem: get_set_constructor_bytes is missing the prototype. The following patch (will force full rebuild, for quick test one can add the prototype just to lang.c) should fix the problem:
--- gcc-4.1.0/gcc/tree.h.pp 2006-04-12 02:49:20.204667824 +0200 +++ gcc-4.1.0/gcc/tree.h 2006-04-12 02:49:23.218209696 +0200 @@ -3781,6 +3781,7 @@ extern unsigned crc32_string (unsigned, const char *); extern void clean_symbol_name (char *); extern tree get_file_function_name_long (const char *); +extern tree get_set_constructor_bytes (tree, unsigned char *, int); extern tree get_callee_fndecl (tree); extern void change_decl_assembler_name (tree, tree); extern int type_num_arguments (tree);