6.34. Label Attributes

6.34 Label Attributes

GCC allows attributes to be set on C labels. See Attribute Syntax, for details of the exact syntax for using attributes. Other attributes are available for functions (see Function Attributes), variables (see Variable Attributes), enumerators (see Enumerator Attributes), and for types (see Type Attributes).

This example uses the cold label attribute to indicate the ErrorHandling branch is unlikely to be taken and that the ErrorHandling label is unused:

asm goto ("some asm" : :