diff options
author | Diego Novillo <dnovillo@redhat.com> | 2004-09-17 21:30:23 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2004-09-17 17:30:23 -0400 |
commit | 823f0809e616d4de3347dce1dec5f5a897f841ad (patch) | |
tree | 6785cb84202c00e716d03fe97bfca3a1951193dd /gcc/testsuite/gcc.dg/pr17319.c | |
parent | b5fefcf63de2696b73921ba0aeb12c46b085e34b (diff) | |
download | gcc-823f0809e616d4de3347dce1dec5f5a897f841ad.tar.gz |
re PR tree-optimization/17319 (-fno-tree-dce cause ICE)
PR tree-optimization/17319
* tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
examine pointers on the LHS of an assignment.
(collect_points_to_info_r): Handle RETURN_EXPR.
testsuite/ChangeLog
PR tree-optimization/17319
* gcc.dg/pr17319.c: New test.
From-SVN: r87673
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr17319.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr17319.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr17319.c b/gcc/testsuite/gcc.dg/pr17319.c new file mode 100644 index 00000000000..5d39e4c5707 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr17319.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fno-tree-dce" } */ + +typedef unsigned long long HARD_REG_ELT_TYPE; +typedef HARD_REG_ELT_TYPE HARD_REG_SET[2]; +static HARD_REG_SET newpat_used_regs; +int try_combine (void) +{ + HARD_REG_ELT_TYPE *scan_tp_ = newpat_used_regs; + scan_tp_[0] = 0; + scan_tp_[1] = 0; +} |