This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Checking failure building arm-elf


> On Thu, 6 Mar 2003, Andreas Schwab wrote:
> 
> > Richard Earnshaw <rearnsha at arm dot com> writes:
> >
> > |> This is new since yesterday.  Building arm-elf now fails with an internal
> > |> check failure:
> > |>
> > |> /work/rearnsha/gnu/egcs/gcc/xgcc -shared-libgcc -B/work/rearnsha/gnu/egcs/g
> > |> cc/ -nostdinc++  -L/work/rearnsha/gnu/egcs/arm-elf/libstdc++-v3/src
> > |> -L/work/rearnsha/gnu/egcs/arm-elf/libstdc++-v3/src/.libs -nostdinc
> > |> -B/work/rearnsha/gnu/egcs/arm-elf/newlib/ -isystem
> > |> /work/rearnsha/gnu/egcs/arm-elf/newlib/targ-include -isystem
> > |> /home/rearnsha/gnusrc/egcs-cross/newlib/libc/include
> > |> -B/work/rearnsha/gnu/install/arm-elf/bin/ -B/work/rearnsha/gnu/install/arm-
> > |> elf/lib/ -isystem /work/rearnsha/gnu/install/arm-elf/include -isystem
> > |> /work/rearnsha/gnu/install/arm-elf/sys-include -L/work/rearnsha/gnu/egcs/ld
> > |>  -c -S -O2 -g -O2 conftest.C 1>&5
> > |> configure: In function `void foo()':
> > |> configure:3967: internal compiler error: tree check: expected class 'd',
> > |> have 't
> > |>    ' (record_type) in decl_assembler_name, at tree.c:151

I've just reproduced it in the clean checkout.  Not sure why it didn't
crashed in my previous tree.  I am commiting the attached patch as
obvious that should fix the problem.
The cgraph codes confused methods and nested functions...
Sorry for the breakage.

Index: cgraph.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cgraph.c,v
retrieving revision 1.6
diff -c -3 -p -r1.6 cgraph.c
*** cgraph.c	5 Mar 2003 22:19:31 -0000	1.6
--- cgraph.c	6 Mar 2003 13:20:05 -0000
*************** cgraph_node (decl)
*** 98,104 ****
    cgraph_nodes = node;
    cgraph_n_nodes++;
    *slot = node;
!   if (DECL_CONTEXT (decl))
      {
        node->origin = cgraph_node (DECL_CONTEXT (decl));
        node->next_nested = node->origin->nested;
--- 98,104 ----
    cgraph_nodes = node;
    cgraph_n_nodes++;
    *slot = node;
!   if (DECL_CONTEXT (decl) && TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL)
      {
        node->origin = cgraph_node (DECL_CONTEXT (decl));
        node->next_nested = node->origin->nested;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]