This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23237] [4.1 Regression] -O1 rejects valid code (xxx causes a section type conflict).
- From: "jconner at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2005 16:17:16 -0000
- Subject: [Bug middle-end/23237] [4.1 Regression] -O1 rejects valid code (xxx causes a section type conflict).
- References: <20050804203702.23237.pluto@agmk.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jconner at apple dot com 2005-08-24 16:17 -------
The declaration of the variable "actions" (in the given example) is being changed to READONLY by the ipa-
reference pass (in function static_execute), so when it comes time to create the section in
"named_section", the default flags do not include SECTION_WRITE, and so they conflict with the flags for
the variable "message", producing the error message.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23237