Commit a48b4234 by Martin Liska Committed by Martin Liska

Do not call chkp_type_bounds_count if MPX is not enabled (PR target/84988).

2018-03-28  Martin Liska  <mliska@suse.cz>

	PR target/84988
	* config/i386/i386.c (ix86_function_arg_advance): Do not call
	chkp_type_bounds_count if MPX is not enabled.

From-SVN: r258923
parent 15c193e2
2018-03-28 Martin Liska <mliska@suse.cz>
PR target/84988
* config/i386/i386.c (ix86_function_arg_advance): Do not call
chkp_type_bounds_count if MPX is not enabled.
2018-03-27 Chung-Ju Wu <jasonwucj@gmail.com> 2018-03-27 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.h (BRANCH_COST): Adjust cost. * config/nds32/nds32.h (BRANCH_COST): Adjust cost.
......
...@@ -8618,7 +8618,8 @@ ix86_function_arg_advance (cumulative_args_t cum_v, machine_mode mode, ...@@ -8618,7 +8618,8 @@ ix86_function_arg_advance (cumulative_args_t cum_v, machine_mode mode,
if (cum->caller) if (cum->caller)
cfun->machine->outgoing_args_on_stack = true; cfun->machine->outgoing_args_on_stack = true;
cum->bnds_in_bt = chkp_type_bounds_count (type); if (flag_check_pointer_bounds)
cum->bnds_in_bt = chkp_type_bounds_count (type);
} }
} }
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