diff options
author | Ilya Enkovich <ilya.enkovich@intel.com> | 2016-05-10 15:56:27 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2016-05-10 15:56:27 +0000 |
commit | afc610dba10fd532e83da10e19c5e0c5d7bcc34d (patch) | |
tree | a6f710ff66873b64cfdb7f8b6456b6d11a8d699a /gcc/testsuite | |
parent | 7f99d40a99b24026874887aff0cd269370e082f3 (diff) | |
download | gcc-afc610dba10fd532e83da10e19c5e0c5d7bcc34d.zip gcc-afc610dba10fd532e83da10e19c5e0c5d7bcc34d.tar.gz gcc-afc610dba10fd532e83da10e19c5e0c5d7bcc34d.tar.bz2 |
re PR tree-optimization/70876 (ICE in chkp_find_bounds: Unexpected tree code with_size_expr)
gcc/
PR tree-optimization/70786
* tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
* gcc/calls.c (initialize_argument_information): Bind bounds
with corresponding args passed by reference.
gcc/testsuite/
PR tree-optimization/70786
* gcc.target/i386/pr70876.c: New test.
From-SVN: r236086
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr70876.c | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index deec34e..7cf507f5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com> + + PR tree-optimization/70786 + * gcc.target/i386/pr70876.c: New test. + 2016-05-10 Jakub Jelinek <jakub@redhat.com> PR target/70927 diff --git a/gcc/testsuite/gcc.target/i386/pr70876.c b/gcc/testsuite/gcc.target/i386/pr70876.c new file mode 100644 index 0000000..c9bab69 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr70876.c @@ -0,0 +1,13 @@ +/* { dg-do compile { target { ! x32 } } } */ +/* { dg-options "-fcheck-pointer-bounds -mmpx -Wno-implicit-function-declaration" } */ + +void f (char *s1, char *s2) +{ + int z = 5; + + struct { char a[z]; } x; + + s1[0] = s2[0]; + + foo (x, x); +} |