[Mesa-dev] [PATCH] scons: Add additional GCC function attribute macros.

Vinson Lee vlee at freedesktop.org
Mon Jul 20 20:25:10 PDT 2015


Match the attributes currently checked in configure.ac.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 scons/gallium.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scons/gallium.py b/scons/gallium.py
index 51b84d7..af30c09 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -380,11 +380,16 @@ def generate(env):
             'HAVE___BUILTIN_EXPECT',
             'HAVE___BUILTIN_FFS',
             'HAVE___BUILTIN_FFSLL',
+            'HAVE_FUNC_ATTRIBUTE_CONST',
             'HAVE_FUNC_ATTRIBUTE_FLATTEN',
+            'HAVE_FUNC_ATTRIBUTE_PURE',
             'HAVE_FUNC_ATTRIBUTE_UNUSED',
             # GCC 3.0
             'HAVE_FUNC_ATTRIBUTE_FORMAT',
+            'HAVE_FUNC_ATTRIBUTE_MALLOC',
             'HAVE_FUNC_ATTRIBUTE_PACKED',
+            # GCC 3.3
+            'HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT',
             # GCC 3.4
             'HAVE___BUILTIN_CTZ',
             'HAVE___BUILTIN_POPCOUNT',
-- 
2.1.4



More information about the mesa-dev mailing list