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: "jaak at ristioja dot ee" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Jun 2011 09:20:08 +0000
- Subject: [Bug c/43686] GCC doesn't duplicate computed gotos for functions marked as "hot"
- Auto-submitted: auto-generated
- References: <bug-43686-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43686
--- Comment #3 from Jaak Ristioja <jaak at ristioja dot ee> 2011-06-10 09:19:49 UTC ---
(In reply to comment #1)
> Duplicate of PR42621?
And probably a duplicate of bug 39284 also.
(In reply to comment #2)
> 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 :)
Both __attribute__((cold)) and __attribute__((hot)) have this issue with GCC
4.5.2 on my Gentoo Linux box. Neither of them solves it.