diff options
author | Richard Guenther <rguenther@suse.de> | 2010-07-09 18:32:29 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-07-09 18:32:29 +0000 |
commit | 38a178dd99642468bfbc390a5b8b8d17dd926cdc (patch) | |
tree | d19bfa340525e1e908efb96bd72cab46f84918a8 /gcc/tree-cfg.c | |
parent | c8aa02cc70491747e1c909943540f9dd4c105591 (diff) | |
download | gcc-38a178dd99642468bfbc390a5b8b8d17dd926cdc.zip gcc-38a178dd99642468bfbc390a5b8b8d17dd926cdc.tar.gz gcc-38a178dd99642468bfbc390a5b8b8d17dd926cdc.tar.bz2 |
re PR middle-end/44890 (Hitting gcc_assert in build2_stat with pr30388.c testsuite test case)
2010-07-09 Richard Guenther <rguenther@suse.de>
PR middle-end/44890
* tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
if base is a pointer.
* tree-cfg.c (verify_expr): Update MEM_REF checking.
From-SVN: r162005
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index c700793..9e38ca7 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -2610,7 +2610,8 @@ verify_expr (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) case MEM_REF: x = TREE_OPERAND (t, 0); - if (!is_gimple_mem_ref_addr (x)) + if (!POINTER_TYPE_P (TREE_TYPE (x)) + || !is_gimple_mem_ref_addr (x)) { error ("Invalid first operand of MEM_REF."); return x; |