aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2015-05-15 19:51:05 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2015-05-15 19:51:05 +0000
commit77ac67e29d8db95f0e8b77245390d505897cb5ab (patch)
tree72762a657f142da2a7758a151654d17cafd2d2d7 /include
parentd5d0d860fb08a5f0da9a3b173ffd1542b96491c8 (diff)
downloadsrc-77ac67e29d8db95f0e8b77245390d505897cb5ab.tar.gz
src-77ac67e29d8db95f0e8b77245390d505897cb5ab.zip
Break apart the gnu_inline attribute and use "artificial" if available.
In general it is bad practice to use the gnu_inline attribute but we will need it in special cases like FORTIFY_SOURCE. In this specific case it is also useful to have the "artificial" attribute: "This attribute is useful for small inline wrappers which if possible should appear during debugging as a unit, depending on the debug info format it will either mean marking the function as artificial or using the caller location for all instructions within the inlined body." This attribute appears to be currently implemented only in GCC. Use it only in conjuntion with gnu_inline in the cases where it is available, which is similar in spirit in how it's used in glibc.
Notes
Notes: svn path=/head/; revision=282987
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions