diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-12-02 08:58:05 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-12-02 08:58:05 +0100 |
commit | edb48cdb9f8dcc52b20f12785a1d570084597842 (patch) | |
tree | c66593139e7d3abc4642c2568ffc48e400187d30 /gcc/tree-chkp.c | |
parent | 38651b523d2df78a62489911e1c0036847c116bd (diff) | |
download | gcc-edb48cdb9f8dcc52b20f12785a1d570084597842.zip gcc-edb48cdb9f8dcc52b20f12785a1d570084597842.tar.gz gcc-edb48cdb9f8dcc52b20f12785a1d570084597842.tar.bz2 |
tree-chkp.c (chkp_compute_bounds_for_assignment): Handle POINTER_DIFF_EXPR.
* tree-chkp.c (chkp_compute_bounds_for_assignment): Handle
POINTER_DIFF_EXPR.
* gcc.target/i386/mpx/pointer-diff-1.c: New test.
From-SVN: r255355
Diffstat (limited to 'gcc/tree-chkp.c')
-rw-r--r-- | gcc/tree-chkp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c index 6d24355..8296786 100644 --- a/gcc/tree-chkp.c +++ b/gcc/tree-chkp.c @@ -2762,6 +2762,7 @@ chkp_compute_bounds_for_assignment (tree node, gimple *assign) case FLOAT_EXPR: case REALPART_EXPR: case IMAGPART_EXPR: + case POINTER_DIFF_EXPR: /* No valid bounds may be produced by these exprs. */ bounds = chkp_get_invalid_op_bounds (); break; |