This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics
- From: "mkuvyrkov at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2007 15:27:43 -0000
- Subject: [Bug rtl-optimization/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics
- References: <bug-31806-12049@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla 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 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