cygwin bootstrap failure II (or init_one_libfunc vs encode_se ction_info)
Richard Henderson
rth@redhat.com
Wed Sep 26 13:02:00 GMT 2001
On Tue, Sep 25, 2001 at 02:31:37AM -0000, Billinghurst, David (CRTS) wrote:
> > cc1.exe: Tree check: expected class 't', have 'x' (error_mark) in
> > i386_pe_encode_section_info, at config/i386/winnt.c:386
Should be fixed.
r~
* optabs.c (init_one_libfunc): Create a dummy function type
instead of using error_mark_node.
Index: optabs.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/optabs.c,v
retrieving revision 1.111
diff -c -p -d -r1.111 optabs.c
*** optabs.c 2001/09/21 20:42:14 1.111
--- optabs.c 2001/09/26 19:56:41
*************** init_one_libfunc (name)
*** 4689,4697 ****
{
/* Create a FUNCTION_DECL that can be passed to ENCODE_SECTION_INFO. */
/* ??? We don't have any type information except for this is
! a function. See if error_mark_node is good enough. */
tree decl = build_decl (FUNCTION_DECL, get_identifier (name),
! error_mark_node);
DECL_ARTIFICIAL (decl) = 1;
DECL_EXTERNAL (decl) = 1;
TREE_PUBLIC (decl) = 1;
--- 4689,4697 ----
{
/* Create a FUNCTION_DECL that can be passed to ENCODE_SECTION_INFO. */
/* ??? We don't have any type information except for this is
! a function. Pretend this is "int foo()". */
tree decl = build_decl (FUNCTION_DECL, get_identifier (name),
! build_function_type (integer_type_node, NULL_TREE));
DECL_ARTIFICIAL (decl) = 1;
DECL_EXTERNAL (decl) = 1;
TREE_PUBLIC (decl) = 1;
More information about the Gcc-bugs
mailing list