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: 3.1 20011116 failed to bootstrap on mips


On Sat, Nov 17, 2001 at 09:23:08AM -0800, H . J . Lu wrote:
> 3.1 20011116 failed to bootstrap on mips-sgi-irix6.5 and
> mipsel-unknown-linux-gnu. I got
> 
> /home/hjl/work/gnu/src/gcc/gcc/libstdc++-v3/libsupc++/new: In static member 
>    function `static void std::ios_base::Init::_S_ios_create(bool)':
> /home/hjl/work/gnu/src/gcc/gcc/libstdc++-v3/libsupc++/new:86: Internal error: 
>    Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> make[5]: *** [ios.lo] Error 1
> 
> 3.1 20011115 is ok.
> 
> H.J.

Hi Richard,

I believe your patch:

http://gcc.gnu.org/ml/gcc-patches/2001-11/msg01028.html

breaks Linux/mips. Could you please fix it? I can provide the
preprocessed C++ file.

Thanks.


H.J.
-----
Program received signal SIGSEGV, Segmentation fault.
int_size_in_bytes (type=0x0) at /home/hjl/work/gnu/src/gcc/mips/gcc/tree.c:1343
1343      type = TYPE_MAIN_VARIANT (type);
(gdb) bt
#0  int_size_in_bytes (type=0x0)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/tree.c:1343
#1  0x081163ab in expand_expr (exp=0x40744108, target=0x409e0510, 
    tmode=VOIDmode, modifier=EXPAND_NORMAL)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:8668
#2  0x08114157 in expand_expr (exp=0x40714d38, target=0x409e0510, 
    tmode=SImode, modifier=EXPAND_NORMAL)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:7461
#3  0x0810e2cc in store_expr (exp=0x40714d38, target=0x409e0510, want_value=0)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:4159
#4  0x0810de56 in expand_assignment (to=0x40a41934, from=0x40714d38, 
    want_value=0, suggest_reg=0)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:3970
#5  0x081b5d6d in expand_decl_init (decl=0x40a41934)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/stmt.c:4143
#6  0x080c345b in emit_local_var (decl=0x40a41934)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/c-semantics.c:268
#7  0x080c3cb9 in expand_stmt (t=0x405da9c0)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/c-semantics.c:755
#8  0x080beee5 in c_expand_expr (exp=0x405da900, target=0x409e04c8, 
    tmode=VOIDmode, modifier=EXPAND_NORMAL)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/c-common.c:3408
#9  0x08116886 in expand_expr (exp=0x405da900, target=0x409e04c8, 
    tmode=VOIDmode, modifier=EXPAND_NORMAL)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:8851
#10 0x081124b1 in expand_expr (exp=0x40a93880, target=0x409e04c8, 
    tmode=VOIDmode, modifier=EXPAND_NORMAL)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:6477
#11 0x08114157 in expand_expr (exp=0x40710018, target=0x409e04c8, 
    tmode=SImode, modifier=EXPAND_NORMAL)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:7461
#12 0x0810e2cc in store_expr (exp=0x40710018, target=0x409e04c8, want_value=0)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:4159
#13 0x08115ef3 in expand_expr (exp=0x409ab900, target=0x409e04c8, 
    tmode=VOIDmode, modifier=EXPAND_NORMAL)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:8484
#14 0x08115419 in expand_expr (exp=0x408f70a0, target=0x0, tmode=VOIDmode, 
    modifier=EXPAND_NORMAL) at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:8097
#15 0x081119a2 in expand_expr (exp=0x40710570, target=0x40189400, 
    tmode=VOIDmode, modifier=EXPAND_NORMAL)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/expr.c:6161
#16 0x081b34cf in expand_expr_stmt (exp=0x40710570)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/stmt.c:2177
#17 0x080c354a in genrtl_expr_stmt (expr=0x40710570)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/c-semantics.c:322
#18 0x080c3ca7 in expand_stmt (t=0x40747a38)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/c-semantics.c:751
#19 0x080c3d1d in expand_stmt (t=0x40747960)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/c-semantics.c:775
#20 0x080ad36c in expand_body (fn=0x4062cf80)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/cp/semantics.c:2503
#21 0x08089454 in yyparse_1 () at parse.y:764
#22 0x081bc609 in compile_file ()
    at /home/hjl/work/gnu/src/gcc/mips/gcc/toplev.c:2160
#23 0x081c07f4 in toplev_main (argc=21, argv=0xbffff844)
    at /home/hjl/work/gnu/src/gcc/mips/gcc/toplev.c:5205
#24 0x4003c6e7 in __libc_start_main (main=0x80c6b14 <main>, argc=21, 
    ubp_av=0xbffff844, init=0x8049098 <_init>, fini=0x825ed80 <_fini>, 
    rtld_fini=0x4000dd74 <_dl_fini>, stack_end=0xbffff83c)
    at ../sysdeps/generic/libc-start.c:129
(gdb) p type
$1 = 0x0
(gdb) f 1
(gdb) p inner_type->type       
$4 = {common = {chain = 0x403d9c1c, type = 0x0, aux = 0x0, code = RECORD_TYPE, 
    side_effects_flag = 0, constant_flag = 0, addressable_flag = 1, 
    volatile_flag = 0, readonly_flag = 0, unsigned_flag = 0, 
    asm_written_flag = 0, used_flag = 0, nothrow_flag = 0, static_flag = 0, 
    public_flag = 0, private_flag = 0, protected_flag = 0, bounded_flag = 0, 
    lang_flag_0 = 0, lang_flag_1 = 0, lang_flag_2 = 1, lang_flag_3 = 0, 
    lang_flag_4 = 0, lang_flag_5 = 0, lang_flag_6 = 0, dummy = 0}, 
  values = 0x408ffd14, size = 0x4091cc00, size_unit = 0x4091cc40, 
  attributes = 0x0, uid = 2013, precision = 0, mode = BLKmode, 
  string_flag = 0, no_force_blk_flag = 0, needs_constructing_flag = 1, 
  transparent_union_flag = 0, packed_flag = 0, restrict_flag = 0, 
  pointer_depth = 0, lang_flag_0 = 0, lang_flag_1 = 1, lang_flag_2 = 1, 
  lang_flag_3 = 0, lang_flag_4 = 1, lang_flag_5 = 1, lang_flag_6 = 0, 
  user_align = 0, align = 32, pointer_to = 0x40982a2c, reference_to = 0x0, 
  symtab = {address = 469, pointer = 0x1d5 <Address 0x1d5 out of bounds>}, 
  name = 0x403d9c98, minval = 0x407dc83c, maxval = 0x4085bb24, 
  next_variant = 0x0, main_variant = 0x403d9b24, binfo = 0x403d7a00, 
  context = 0x401e3ba0, alias_set = -1, lang_specific = 0x403d79c0}
(gdb) p inner_type->common     
$5 = {chain = 0x403d9c1c, type = 0x0, aux = 0x0, code = RECORD_TYPE, 
  side_effects_flag = 0, constant_flag = 0, addressable_flag = 1, 
  volatile_flag = 0, readonly_flag = 0, unsigned_flag = 0, 
  asm_written_flag = 0, used_flag = 0, nothrow_flag = 0, static_flag = 0, 
  public_flag = 0, private_flag = 0, protected_flag = 0, bounded_flag = 0, 
  lang_flag_0 = 0, lang_flag_1 = 0, lang_flag_2 = 1, lang_flag_3 = 0, 
  lang_flag_4 = 0, lang_flag_5 = 0, lang_flag_6 = 0, dummy = 0}


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