This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap broken at the beginning of libstdc++-v3
- From: Jan Hubicka <jh at suse dot cz>
- To: "H. J. Lu" <hjl at lucon dot org>, gcc-patches at gcc dot gnu dot org
- Cc: "Vladimir A. Merzliakov" <wanderer at rsu dot ru>, jh at suse dot cz,Paolo Carlini <pcarlini at suse dot de>, gcc at gcc dot gnu dot org,gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Oct 2003 21:19:32 +0200
- Subject: Re: Bootstrap broken at the beginning of libstdc++-v3
- References: <3F96CB45.7040106@suse.de> <006301c398ca$3d59b1d0$10fcd0c3@npt> <20031022183947.GA19606@lucon.org>
> On both Linux/i686 and Linux/ia64, I got
>
> configure:4883: /export/build/gnu/gcc/build-ia64-linux/gcc/xgcc -shared-libgcc
> -B/export/build/gnu/gcc/build-ia64-linux/gcc/ -nostdinc++
> -L/export/build/gnu/gcc/build-ia64-linux/ia64-unknown-linux-gnu/libstdc++-v3/src
> -L/export/build/gnu/gcc/build-ia64-linux/ia64-unknown-linux-gnu/libstdc++-v3/src/.libs
> -B/usr/gcc-3.4/ia64-unknown-linux-gnu/bin/
> -B/usr/gcc-3.4/ia64-unknown-linux-gnu/lib/ -isystem
> /usr/gcc-3.4/ia64-unknown-linux-gnu/include -isystem
> /usr/gcc-3.4/ia64-unknown-linux-gnu/sys-include -c -S -O2 -g -O2 conftest.cc
> >&5
> configure:4872: internal compiler error: in cgraph_function_possibly_inlined_p,
> at cgraph.c:541
Hi,
the problem appears to be that we sometimes output debug info for types
even before finalizing compilation unit. I will try to make
unit-at-a-time code to delay these as well, but for now I am applying
the attached patch.
It can make debug info somewhat bigger in these cases but still better
than what we had previously.
Honza
2003-10-22 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
global info is not ready.
Index: cgraph.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cgraph.c,v
retrieving revision 1.33
diff -c -3 -p -r1.33 cgraph.c
*** cgraph.c 22 Oct 2003 11:58:09 -0000 1.33
--- cgraph.c 22 Oct 2003 19:16:23 -0000
*************** cgraph_varpool_assemble_pending_decls (v
*** 535,544 ****
bool
cgraph_function_possibly_inlined_p (tree decl)
{
- if (!flag_unit_at_a_time)
- return (DECL_INLINE (decl) && !flag_no_inline);
if (!cgraph_global_info_ready)
! abort ();
return cgraph_node (decl)->global.inlined;
}
--- 535,542 ----
bool
cgraph_function_possibly_inlined_p (tree decl)
{
if (!cgraph_global_info_ready)
! return (DECL_INLINE (decl) && !flag_no_inline);
return cgraph_node (decl)->global.inlined;
}