Commit df265bd2 by Ilya Enkovich Committed by Ilya Enkovich

re PR target/65184 (ICE: in expand_expr_addr_expr_1, at expr.c:7760 with…

re PR target/65184 (ICE: in expand_expr_addr_expr_1, at expr.c:7760 with -mabi=ms -fcheck-pointer-bounds -mmpx)

gcc/

	PR target/65184
	* gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
	are never passed by reference.

gcc/testsuite/

	PR target/65184
	* gcc.target/i386/pr65184.c: New.

From-SVN: r221106
parent 321a5ceb
2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65184
* gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
are never passed by reference.
2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65183
* tree-chkp.c (chkp_check_lower): Don't check against
zero bounds for already instrumented functions.
......
......@@ -7914,6 +7914,11 @@ ix86_pass_by_reference (cumulative_args_t cum_v, machine_mode mode,
{
CUMULATIVE_ARGS *cum = get_cumulative_args (cum_v);
/* Bounds are never passed by reference. */
if ((type && POINTER_BOUNDS_TYPE_P (type))
|| POINTER_BOUNDS_MODE_P (mode))
return false;
/* See Windows x64 Software Convention. */
if (TARGET_64BIT && (cum ? cum->call_abi : ix86_abi) == MS_ABI)
{
2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65184
* gcc.target/i386/pr65184.c: New.
2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65183
* gcc.target/i386/pr65183.c: New.
......
/* { dg-do compile } */
/* { dg-require-effective-target mpx } */
/* { dg-options "-O2 -mabi=ms -fcheck-pointer-bounds -mmpx" } */
void
foo (int *a)
{
if (a[0] != a[1] * 2333)
__builtin_abort ();
}
void
bar (int *a)
{
if (a[0] != a[1] * 2333)
__builtin_abort ();
}
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