This is the mail archive of the gcc@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: Bootstrap broken at the beginning of libstdc++-v3


> 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;
  }
  


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