diff options
author | Jeff Law <law@redhat.com> | 2017-03-27 21:22:25 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2017-03-27 21:22:25 -0600 |
commit | 865169874b1aa348baada12802a0ab96e641f5f3 (patch) | |
tree | ea0b4f860253c327ab9e18c57e63b77337cc0e72 /gcc/testsuite | |
parent | 980999836f645cc9d3444ea41fceb06f8fd78ead (diff) | |
download | gcc-865169874b1aa348baada12802a0ab96e641f5f3.zip gcc-865169874b1aa348baada12802a0ab96e641f5f3.tar.gz gcc-865169874b1aa348baada12802a0ab96e641f5f3.tar.bz2 |
re PR target/80162 (ICE on invalid code (address of register variable))
PR tree-optimization/80162
* tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
function name. Limit recursion depth.
(record_temporary_equivalences): Corresponding changes.
PR tree-optimization/80162
* gcc.c-torture/compile/pr80216.c: New test.
From-SVN: r246517
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr80216.c | 37 |
2 files changed, 42 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 14f6d6b..9c7f2cf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-03-27 Jeff Law <law@redhat.com> + + PR tree-optimization/80162 + * gcc.c-torture/compile/pr80216.c: New test. + 2017-03-27 Jakub Jelinek <jakub@redhat.com> PR middle-end/80162 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr80216.c b/gcc/testsuite/gcc.c-torture/compile/pr80216.c new file mode 100644 index 0000000..cf5b27d --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr80216.c @@ -0,0 +1,37 @@ +int u4, lx, e0, zy, pz; + +void +tb (int m6) +{ + for (pz = 0; pz < 1; ++pz) + { + for (zy = 0; zy < 1; ++zy) + for (u4 = 0; u4 < 1; ++u4) + for (e0 = 0; e0 < 1; ++e0) + { + as: + for (;;) + { + } + } + + if (e0 != 0) + goto ql; + + if (0) + { + o3: + for (lx = 0; lx < 1; ++lx) + { + m6 |= lx; + if (m6 == 0) + lx = 0; + ql: + ; + } + goto as; + } + } + goto o3; +} + |