2009-01-18 Richard Guenther <rguenther@suse.de>
commit2ac47fdf846dae9bfa0598a9efe3f007fc2d9a6c
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Jan 2009 15:51:12 +0000 (18 15:51 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Jan 2009 15:51:12 +0000 (18 15:51 +0000)
treec3c88c9e03ec958f75cbb15702d98af42d7408c2
parentb338dafb9b5d5e47ad73651b0d85fa5cbfe91b5c
2009-01-18  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/38819
* tree-flow.h (operation_could_trap_helper_p): Declare.
* tree-eh.c (operation_could_trap_helper_p): Export.
* tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
* tree-ssa-sccvn.c (vn_nary_may_trap): New function.
* tree-ssa-pre.c (insert_into_preds_of_block): Check if we
are about to insert a possibly trapping instruction and fail
in this case.

* gcc.c-torture/execute/pr38819.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143485 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr38819.c [new file with mode: 0644]
gcc/tree-eh.c
gcc/tree-flow.h
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c
gcc/tree-ssa-sccvn.h