This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/38644] Optimization flag -O1 -fschedule-insns2 causes wrong code
- From: "rearnsha at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2009 11:16:41 -0000
- Subject: [Bug rtl-optimization/38644] Optimization flag -O1 -fschedule-insns2 causes wrong code
- References: <bug-38644-17122@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rearnsha at gcc dot gnu dot org 2009-12-22 11:16 -------
IMO this is a generic bug in the scheduler. The code in sched-deps.c should
note that STACK_POINTER_RTX is being changed and insert a memory barrier that
prevents migration of stack-related memory accesses across the change.
Of course, determining what memory accesses are stack-related is quite hard,
and it may be that all memory accesses in the same address space as the stack
will need to be restricted.
--
rearnsha at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |rtl-optimization
Last reconfirmed|2009-03-17 00:03:45 |2009-12-22 11:16:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38644