summaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-27 10:42:59 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-27 10:42:59 +0000
commit57a284265bdb48673ad234701aa16d71a2555fbe (patch)
tree35e4880bf75f0d631d220529700fa59d67fd7ad5 /gcc/cfgexpand.c
parent9a7965a1811295d9ec134c5e3cd9d8f5774376af (diff)
downloadgcc-57a284265bdb48673ad234701aa16d71a2555fbe.tar.gz
2009-01-27 Richard Guenther <rguenther@suse.de>
PR tree-optimization/38503 * cfgexpand.c (expand_gimple_basic_block): Ignore GIMPLE_CHANGE_DYNAMIC_TYPE during expansion. * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune variables that cannot have TBAA applied. (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE statements. * g++.dg/warn/Wstrict-aliasing-bogus-placement-new.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143700 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 6d7fe772fe7..a9a52c45351 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -1970,7 +1970,7 @@ expand_gimple_basic_block (basic_block bb)
return new_bb;
}
}
- else
+ else if (gimple_code (stmt) != GIMPLE_CHANGE_DYNAMIC_TYPE)
{
tree stmt_tree = gimple_to_tree (stmt);
last = get_last_insn ();