This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure: element 1863 out of bounds inmerge_blocks_nomove, at flow.c:2887
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: Bootstrap failure: element 1863 out of bounds inmerge_blocks_nomove, at flow.c:2887
- From: Andreas Jaeger <aj at suse dot de>
- Date: Wed, 01 Aug 2001 11:01:37 +0200
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010730171516.I31346@atrey.karlin.mff.cuni.cz><Pine.BSF.4.33.0107301831590.49500-100000@taygeta.dbai.tuwien.ac.at><20010730185909.B473@atrey.karlin.mff.cuni.cz>
Jan Hubicka <jh@suse.cz> writes:
[...]
> Mon Jul 30 16:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
> * toplev.c (rest_of_compilation): Recompute block_for_insn
> before post-reload cfg_cleanup.
> * function.c (thread_prologue_epilogue_insns):
> Call set_block_for_new_insns when emitting prologue directly.
[...]
> Index: function.c
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/function.c,v
> retrieving revision 1.285
> diff -c -3 -p -r1.285 function.c
> *** function.c 2001/07/29 02:10:41 1.285
> --- function.c 2001/07/30 14:32:31
> *************** thread_prologue_and_epilogue_insns (f)
> *** 7226,7232 ****
> inserted = 1;
> }
> else
> ! emit_insn_after (seq, f);
> }
> #endif
>
> --- 7226,7233 ----
> inserted = 1;
> }
> else
> ! set_block_for_new_insns (emit_insn_after (seq, f),
> ! ENTRY_BLOCK_PTR->succ);
> }
Honza,
this looks wrong, I now get this warning:
/cvs/gcc/gcc/function.c:7227: warning: passing arg 2 of `set_block_for_new_insns' from incompatible pointer type
succ has type edge but set_block_for_new_insns expects a basic_block.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj