Commit b2953ba0 by Ilya Enkovich Committed by Ilya Enkovich

re PR target/65508 (ICE: in initialize_inlined_parameters, at tree-inline.c:3305…

re PR target/65508 (ICE: in initialize_inlined_parameters, at tree-inline.c:3305 with -fcheck-pointer-bounds -mmpx and nested function)

gcc/

	PR target/65508
	* tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
	chain for generated call.

gcc/testsuite/

	PR target/65508
	* gcc.target/i386/mpx/pr65508.c: New.

From-SVN: r221661
parent 2bb9e67f
2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65508
* tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
chain for generated call.
2015-03-25 Richard Biener <rguenther@suse.de>
* passes.c (pass_manager::execute_early_local_passes): Guard
......
2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65508
* gcc.target/i386/mpx/pr65508.c: New.
2015-03-25 Mikael Morin <mikael@gcc.gnu.org>
PR fortran/64952
......
/* { dg-do compile } */
/* { dg-options "-O2 -fcheck-pointer-bounds -mmpx" } */
void
bar (int N)
{
int a[N];
void foo (int a[N])
{
}
foo (a);
}
......@@ -1838,6 +1838,7 @@ chkp_add_bounds_to_call_stmt (gimple_stmt_iterator *gsi)
new_call = gimple_build_call_vec (gimple_op (call, 1), new_args);
gimple_call_set_lhs (new_call, gimple_call_lhs (call));
gimple_call_copy_flags (new_call, call);
gimple_call_set_chain (new_call, gimple_call_chain (call));
}
new_args.release ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment