[Bug rtl-optimization/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics
mkuvyrkov at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed May 30 15:28:00 GMT 2007
------- 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 for the first time it will be initialized and after that
will behave like a normal MEM_READONLY_P ().
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31806
More information about the Gcc-bugs
mailing list