-
- Downloads
re PR rtl-optimization/41239 (Scheduler reorders division by zero before a...
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
Showing
- gcc/ChangeLog 14 additions, 0 deletionsgcc/ChangeLog
- gcc/sched-deps.c 89 additions, 2 deletionsgcc/sched-deps.c
- gcc/sched-int.h 6 additions, 0 deletionsgcc/sched-int.h
- gcc/sched-rgn.c 5 additions, 0 deletionsgcc/sched-rgn.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.c-torture/execute/pr41239.c 67 additions, 0 deletionsgcc/testsuite/gcc.c-torture/execute/pr41239.c
Loading
Please register or sign in to comment