This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] hot/cold attributes on labels
- From: Richard Henderson <rth at redhat dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Baron <jbaron at redhat dot com>, David Daney <ddaney at caviumnetworks dot com>
- Date: Wed, 20 Oct 2010 14:33:45 -0700
- Subject: Re: [RFC] hot/cold attributes on labels
- References: <20101019214337.GD2855@redhat.com> <4CBF5AAF.6050103@redhat.com> <87y69slfsb.fsf@basil.nowhere.org>
On 10/20/2010 02:23 PM, Andi Kleen wrote:
> I would be a bit worried about what this syntax does for syntax error
> recovery, because now you can have parts of a type in
> the middle of a expression. Without a parser generator
> double checking this it's hard to know.
This patch does not change the parser at all.
We already accept __attribute__ on labels, though
the syntax is slightly different for C and C++.
At present the only valid attribute for labels is
unused.
r~