in reply to Re^3: I'm trying to consolidate my functions into subroutines
in thread I'm trying to consolidate my functions into subroutines

As AnomalousMonk wrote, such function attributes are GNU C extensions. But they can be considered de facto standard features on many platforms. Excerpt from gcc info's:

Note that in many cases, the compiler can discover those attributes on its own (and even offer suggestions to the programmer via warnings.)

ps. Take care not to confuse type qualifier const with attribute((const))

Replies are listed 'Best First'.
Re^5: I'm trying to consolidate my functions into subroutines
by afoken (Chancellor) on May 17, 2017 at 19:51 UTC

    gcc has more than just function attributes. Variables, types, labels, enums, and statements also can have attributes. They all share a common syntax, choosen in a way that the programmer can use a preprocessor macro to hide gcc attributes from a non-gcc compiler.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)