[Bug rtl-optimization/38644] Optimization flag -O1 -fschedule-insns2 causes wrong code
rearnsha at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 22 11:16:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list