This is the mail archive of the gcc-bugs@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 fails with current mainline


Andreas Jaeger <aj@suse.de> writes:

> "David S. Miller" <davem@redhat.com> writes:
> 
> >    From: Andreas Jaeger <aj@suse.de>
> >    Date: 11 Jun 2002 16:17:10 +0200
> > 
> >    (gdb) p insn_last
> >    $1 = (struct rtx_def *) 0x4046cd00
> >    (gdb) pr
> >    (code_label 106 105 0 95 "" "" [0 uses])
> > 
> > Fixed thusly:
> > 
> > 2002-06-11  David S. Miller  <davem@redhat.com>
> > 
> > 	* emit-rtl.c (try_split): Do not abort on non-INSN_P.
> > 	Only run RTX equality checks on INSN_P rtl.
> 
> Thanks for the fast reply, I'll give it a try now.  If you hear
> nothing in the next two hours, it worked fine ;-)

It didn't work.  here's the next problem:


stage1/xgcc -Bstage1/ -B/opt/gcc/3.2-devel/i686-pc-linux-gnu/bin/ -c -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I/cvs/gcc/gcc -I/cvs/gcc/gcc/. -I/cvs/gcc/gcc/config -I/cvs/gcc/gcc/../include /cvs/gcc/gcc/hashtable.c -o hashtable.o
/cvs/gcc/gcc/hashtable.c: In function `approx_sqrt':
/cvs/gcc/gcc/hashtable.c:326: internal compiler error: RTL check: expected elt 4 type 't', have '0' (rtx code_label) in emit_insn_after_scope, at emit-rtl.c:4301
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

(gdb) bt
#0  0x4005f1dd in exit () from /lib/libc.so.6
#1  0x081538ae in warning_with_file_and_line (
    file=0x8b4a280 "RTL check: expected elt %d type '%c', have '%c' (rtx %s) in %s, at %s:%d", line=4, 
    msgid=0x74 <Address 0x74 out of bounds>) at /cvs/gcc/gcc/diagnostic.c:1144
#2  0x087f4bdd in rtl_check_failed_type1 () at /cvs/gcc/gcc/rtl.c:578
#3  0x081900b6 in emit_insn_after_scope (pattern=0x4046cc80, after=0x4046cd00, scope=0x4045c8c0) at /cvs/gcc/gcc/emit-rtl.c:4301
#4  0x08186a4d in try_split (pat=0x40455ea0, trial=0x4045ccc0, last=1) at /cvs/gcc/gcc/emit-rtl.c:3235
#5  0x08752e53 in split_insn (insn=0x4045ccc0) at /cvs/gcc/gcc/recog.c:2690
#6  0x0875323c in split_all_insns (upd_life=0) at /cvs/gcc/gcc/recog.c:2746
#7  0x0885914c in rest_of_compilation (decl=0x403a4000) at /cvs/gcc/gcc/toplev.c:3278
#8  0x08071c6d in c_expand_body (fndecl=0x403a4000, nested_p=0, can_defer_p=1) at /cvs/gcc/gcc/c-decl.c:6869
#9  0x080717a1 in finish_function (nested=0, can_defer_p=1) at /cvs/gcc/gcc/c-decl.c:6736
#10 0x0804a654 in yyparse () at c-parse.y:394
#11 0x08056400 in c_common_parse_file (set_yydebug=0) at /cvs/gcc/gcc/c-lex.c:165
#12 0x08856591 in compile_file () at /cvs/gcc/gcc/toplev.c:2094
#13 0x0885c79d in do_compile () at /cvs/gcc/gcc/toplev.c:5192
#14 0x0885c804 in toplev_main (argc=19, argv=0xbffff344) at /cvs/gcc/gcc/toplev.c:5224
#15 0x080c2d9a in main (argc=19, argv=0xbffff344) at /cvs/gcc/gcc/main.c:35
#16 0x4004b9ed in __libc_start_main () from /lib/libc.so.6

#3  0x081900b6 in emit_insn_after_scope (pattern=0x4046cc80, after=0x4046cd00, scope=0x4045c8c0) at /cvs/gcc/gcc/emit-rtl.c:4301
4301          INSN_SCOPE (after) = scope;
(gdb) p after
$1 = (struct rtx_def *) 0x4046cd00
(gdb) pr
(code_label 106 105 25 2 95 "" "" [1 uses])
(gdb) p *after
$2 = {code = CODE_LABEL, mode = VOIDmode, jump = 0, call = 0, unchanging = 0, volatil = 0, in_struct = 0, used = 0, 
  integrated = 0, frame_related = 0, fld = {{rtwint = 106, rtint = 106, rtuint = 106, rtstr = 0x6a <Address 0x6a out of bounds>, 
      rtx = 0x6a, rtvec = 0x6a, rttype = 106, rt_addr_diff_vec_flags = {min_align = 106, base_after_vec = 0, min_after_vec = 0, 
        max_after_vec = 0, min_after_base = 0, max_after_base = 0, offset_unsigned = 0, scale = 0}, rt_cselib = 0x6a, 
      rtbit = 0x6a, rttree = 0x6a, bb = 0x6a, rtmem = 0x6a}}}

I'm offline until tomorrow and cannot help further directly,

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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