[Bug optimization/2806] if's are not combined together

eric-gcc@omnifarious.org gcc-bugzilla@gcc.gnu.org
Mon Jun 16 16:37:00 GMT 2003


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.



More information about the Gcc-bugs mailing list