aboutsummaryrefslogtreecommitdiff
path: root/gcc/alloc-pool.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-11-23 14:28:59 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-11-23 14:28:59 +0000
commit27fa4044f10f2a28e3e33b8b126462276f8fdc4f (patch)
tree48a10a4d1d5afd593e94941b3bf4da1a06912d68 /gcc/alloc-pool.h
parentbdcfbbfccba6c7f843908b7b5d1bef1acd23ccbc (diff)
downloadgcc-27fa4044f10f2a28e3e33b8b126462276f8fdc4f.zip
gcc-27fa4044f10f2a28e3e33b8b126462276f8fdc4f.tar.gz
gcc-27fa4044f10f2a28e3e33b8b126462276f8fdc4f.tar.bz2
re PR tree-optimization/34176 (SCCVN breaks gettext)
2007-11-23 Richard Guenther <rguenther@suse.de> Michael Matz <matz@suse.de> PR tree-optimization/34176 * alloc-pool.h (empty_alloc_pool): Declare. * alloc-pool.c (empty_alloc_pool): New function. * tree-ssa-sccvn.c (vn_reference_lookup): Also lookup from the valid table if a lookup from the optimistic table failed. (vn_unary_op_lookup): Likewise. (vn_binary_op_lookup): Likewise. (vn_phi_lookup): Likewise. (process_scc): Clear optimistic tables before every iteration. * gcc.c-torture/execute/pr34176.c: New testcase. Co-Authored-By: Michael Matz <matz@suse.de> From-SVN: r130379
Diffstat (limited to 'gcc/alloc-pool.h')
-rw-r--r--gcc/alloc-pool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h
index 772d9a0..1fc3c57 100644
--- a/gcc/alloc-pool.h
+++ b/gcc/alloc-pool.h
@@ -59,6 +59,7 @@ typedef struct alloc_pool_def
extern alloc_pool create_alloc_pool (const char *, size_t, size_t);
extern void free_alloc_pool (alloc_pool);
+extern void empty_alloc_pool (alloc_pool);
extern void free_alloc_pool_if_empty (alloc_pool *);
extern void *pool_alloc (alloc_pool);
extern void pool_free (alloc_pool, void *);