util: Add ATTRIBUTE_OPTIMIZE(flags)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30622>
This commit is contained in:
Matt Turner
2024-08-12 11:45:44 -04:00
committed by Marge Bot
parent 83c2524124
commit b3430a7bb8
2 changed files with 7 additions and 0 deletions

View File

@@ -1044,6 +1044,7 @@ endforeach
_attributes = [
'const', 'flatten', 'malloc', 'pure', 'unused', 'warn_unused_result',
'weak', 'format', 'packed', 'returns_nonnull', 'alias', 'noreturn',
'optimize',
]
foreach a : cc.get_supported_function_attributes(_attributes)
pre_args += '-DHAVE_FUNC_ATTRIBUTE_@0@'.format(a.to_upper())