Re: Documented support for attributes on function definitions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

On Sat, Dec 02, 2017 at 06:05:42PM +0100, Markus Elfring wrote:
> The GCC documentation provides a specific information:
> https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Function-Attributes.html
> “…
> Function attributes are introduced by the __attribute__ keyword on a declaration,
> …”
> 
> The corresponding examples specify such attributes at the end of each
> function declaration. I constructed another small test program which can show
> that they work also at other positions with function definitions.
> 
> How do you think about to describe this possibility better in the documentation?

There is

https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Attribute-Syntax.html#All-other-attributes

already, but it isn't too easy to read (or to find, apparently).

Suggestions welcome!  Patches even better ;-)


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux