This is the mail archive of the gcc-patches@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]

Re: Bootstrap failure: element 1863 out of bounds inmerge_blocks_nomove, at flow.c:2887


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


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