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 c++/31806] miscompilation with -fschedule-insns2 -fno-threadsafe-statics



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-05-30 15:56 -------
Here is the comment from rtl.h about MEM_READONLY_P:
/* 1 if RTX is a mem that is statically allocated in read-only memory.  */
And not:
  /* 1 in a REG, MEM, or CONCAT if the value is set at most once, anywhere.  */

Oh someone forgot to update that part of rtl.h (the first one is the true
definition).  The second comment for unchanging is the old definition pre
4.0.x.  This was changed because the exact reasons here.  It was hard to define
what was the initialize setting.

So this is a front-end bug.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|rtl-optimization            |c++


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]