[Bug rtl-optimization/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics

2007-05-30 Thread mkuvyrkov at gcc dot gnu dot org
--- Comment #1 from mkuvyrkov at gcc dot gnu dot org 2007-05-30 14:30 --- This is an aliasing issue. true_dependence () returns '0' on mems from insns 15 and 58. This is due to MEM_READONLY_P () flag set on them. (insn:HI 15 13 16 3 (set (mem/u/f/c/i:DI (symbol_ref:DI

[Bug rtl-optimization/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics

2007-05-30 Thread mkuvyrkov at gcc dot gnu dot org
--- Comment #2 from mkuvyrkov at gcc dot gnu dot org 2007-05-30 15:06 --- Created an attachment (id=13634) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13634action=view) Patch This patch fixes the issue but wasn't yet bootstrapped or tested in any other way. --

[Bug rtl-optimization/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics

2007-05-30 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-05-30 15:12 --- I don't think MEM_READONLY_P should be set. I think this is related to PR 31809. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics

2007-05-30 Thread mkuvyrkov at gcc dot gnu dot org
--- Comment #4 from mkuvyrkov at gcc dot gnu dot org 2007-05-30 15:22 --- Created an attachment (id=13635) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13635action=view) Patch Updated patch. -- mkuvyrkov at gcc dot gnu dot org changed: What|Removed

[Bug rtl-optimization/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics

2007-05-30 Thread mkuvyrkov at gcc dot gnu dot org
--- Comment #5 from mkuvyrkov at gcc dot gnu dot org 2007-05-30 15:27 --- (In reply to comment #3) I don't think MEM_READONLY_P should be set. I think this is related to PR 31809. Memory location in question is a constant static variable in a function. When the function is run