This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43686] GCC doesn't duplicate computed gotos for functions marked as "hot"
- From: "dmitry at zend dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Apr 2010 13:54:42 -0000
- Subject: [Bug c/43686] GCC doesn't duplicate computed gotos for functions marked as "hot"
- References: <bug-43686-19010@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from dmitry at zend dot com 2010-04-08 13:54 -------
yes. It's definitely the same issue.
The only additional note that __attribute__((hot)) doesn't fix the problem (as
I would expect tracing down optimize_bb_for_size_p()), but makes an additional
slowdown. In opposite, the __attribute__((cold)) solves the issue. It looks
very strange.
I suppose some condition has to be inverted :)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43686