This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cygwin bootstrap failure II (or init_one_libfunc vs encode_se ction_info)
- To: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Subject: Re: cygwin bootstrap failure II (or init_one_libfunc vs encode_se ction_info)
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 26 Sep 2001 12:59:59 -0700
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- References: <8D00C32549556B4E977F81DBC24E985D1B1D4A@crtsmail1.technol_exch.corp.riotinto.org>
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;