This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]