[Bug rtl-optimization/41239] Scheduler reorders division by zero before a call that might not return
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 8 09:26:00 GMT 2009
------- Comment #5 from jakub at gcc dot gnu dot org 2009-09-08 09:26 -------
Subject: Bug 41239
Author: jakub
Date: Tue Sep 8 09:25:47 2009
New Revision: 151500
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151500
Log:
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.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr41239.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/sched-deps.c
trunk/gcc/sched-int.h
trunk/gcc/sched-rgn.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41239
More information about the Gcc-bugs
mailing list