aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-09-08 11:25:47 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2009-09-08 11:25:47 +0200
commit1098d3a5510e41a94ce96feaa087f608112ea01b (patch)
tree46fd118f8f43c998742ad489596528e4cc25da80 /gcc/tree-ssa.c
parentc673a2c7b495c12e5d332838494523f5c62c85da (diff)
downloadgcc-1098d3a5510e41a94ce96feaa087f608112ea01b.zip
gcc-1098d3a5510e41a94ce96feaa087f608112ea01b.tar.gz
gcc-1098d3a5510e41a94ce96feaa087f608112ea01b.tar.bz2
re PR rtl-optimization/41239 (Scheduler reorders division by zero before a call that might not return)
PR rtl-optimization/41239 * sched-int.h (struct deps): Add last_function_call_may_noreturn field. * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn lists. * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns across calls, as the calls might not always return normally. (call_may_noreturn_p): New function. (deps_analyze_insn): Update last_function_call_may_noreturn list. (init_deps): Initialize it. (remove_from_deps): Also remove calls from last_function_call_may_noreturn list. * gcc.c-torture/execute/pr41239.c: New test. From-SVN: r151500
Diffstat (limited to 'gcc/tree-ssa.c')
0 files changed, 0 insertions, 0 deletions