This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/25636] [4.2 Regression] opts.c is being miscompiled, write to read only memory
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2006 03:28:21 -0000
- Subject: [Bug rtl-optimization/25636] [4.2 Regression] opts.c is being miscompiled, write to read only memory
- References: <bug-25636-11951@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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