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: "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: 24 Aug 2005 17:12:42 -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 pinskia at gcc dot gnu dot org 2005-08-24 17:12 -------
(In reply to comment #7)
> It seems like TREE_CONSTANT has the semantics we're looking for (value doesn't change) instead of
> TREE_READONLY, but I think someone more familiar with this pass (perhaps the author, Kenneth
> Zadeck?) would have to make that judgement.
Actually TREE_READONLY is correct and TREE_CONSTANT is incorrect to use this context (there was a
discussion about this before but I cannot find it).
TREE_CONSTANT is not set by the way on "static const" variables in C anyways, only TREE_READONLY.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23237