compiler: add 'force_align_arg_pointer' function attribute

pull/7183/head
Tim-Philipp Müller 5 years ago committed by Jussi Pakkanen
parent da018da753
commit 246e5437aa
  1. 7
      docs/markdown/Reference-tables.md
  2. 2
      mesonbuild/compilers/c_function_attributes.py

@ -199,7 +199,7 @@ which are supported by GCC, Clang, and other compilers.
| Name |
|----------------------|
|--------------------------|
| alias |
| aligned |
| alloc_size |
@ -217,6 +217,7 @@ which are supported by GCC, Clang, and other compilers.
| flatten |
| format |
| format_arg |
| force_align_arg_pointer³ |
| gnu_inline |
| hot |
| ifunc |
@ -236,7 +237,7 @@ which are supported by GCC, Clang, and other compilers.
| visibility:default† |
| visibility:hidden† |
| visibility:internal† |
| visibility:protected†|
| visibility:protected† |
| warning |
| warn_unused_result |
| weak |
@ -248,6 +249,8 @@ which are supported by GCC, Clang, and other compilers.
*New in 0.52.0* These split visibility attributes are preferred to the plain
"visibility" as they provide narrower checks.
³ *New in 0.55.0*
### MSVC __declspec
These values are supported using the MSVC style `__declspec` annotation,

@ -56,6 +56,8 @@ C_FUNC_ATTRIBUTES = {
'int foo(const char * p, ...) __attribute__((format(printf, 1, 2)));',
'format_arg':
'char * foo(const char * p) __attribute__((format_arg(1)));',
'force_align_arg_pointer':
'__attribute__((force_align_arg_pointer)) int foo(void) { return 0; }',
'gnu_inline':
'inline __attribute__((gnu_inline)) int foo(void) { return 0; }',
'hot':

Loading…
Cancel
Save