This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/2806] if's are not combined together
- From: "eric-gcc at omnifarious dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2003 16:34:38 -0000
- Subject: [Bug optimization/2806] if's are not combined together
- References: <20010511150601.2806.eric-gcc@omnifarious.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2806
------- Additional Comments From eric-gcc@omnifarious.org 2003-06-16 16:34 -------
Well, actually, the bug is two issues.
The first is that trivial static initializers of const objects like this should
be analyzed at compile time, and put in the .rodata segment, provided, of
course, there are equally trivial destructors.
If it's non-const or there are trivial constructors, but not trivial
destructors, then it should be put into the .data segment. There is no reason
those things need to have any run time code at all.
The second issue is the "if statements are not combined together" issue.