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/25636] [4.2 Regression] opts.c is being miscompiled, write to read only memory



------- Comment #21 from pinskia at gcc dot gnu dot org  2006-01-16 03:28 -------
(In reply to comment #20)
> I assume this means "read-only" just as a hint for the compiler, right? Not
> that it would really actually reside in a "read-only" memory. So the writing
> should not cause the segfault. It is the memset that causes the segfault, no?

No, it is not just a hint to compiler, the writting to read only memory is
causing the seg fault look at the instruction which is seg faulting, it is the
write.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2 Regression] cc1 and    |[4.2 Regression] opts.c is
                   |cc1plus --help core         |being miscompiled, write to
                   |                            |read only memory


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25636


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