summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_compiler.h
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2012-06-17 01:11:39 -0700
committerVinson Lee <vlee@freedesktop.org>2012-06-18 10:01:26 -0700
commitcd62960a2e2ab43482cc8ee19c19e2856795bc12 (patch)
treea1b4b80d0f20e964ef4c6cd6bbcb992a9d35f48e /src/gallium/include/pipe/p_compiler.h
parentf34e2f484bb73bba79a5b3fa7cff2e79bc7f0cf9 (diff)
downloadexternal_mesa3d-cd62960a2e2ab43482cc8ee19c19e2856795bc12.zip
external_mesa3d-cd62960a2e2ab43482cc8ee19c19e2856795bc12.tar.gz
external_mesa3d-cd62960a2e2ab43482cc8ee19c19e2856795bc12.tar.bz2
gallium: Add support for Solaris Studio C++ compiler.
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/include/pipe/p_compiler.h')
-rw-r--r--src/gallium/include/pipe/p_compiler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index 1daa5ab..5958333 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -211,7 +211,7 @@ typedef unsigned char boolean;
/* Macros for data alignment. */
-#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
+#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) || defined(__SUNPRO_CC)
/* See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Type-Attributes.html */
#define PIPE_ALIGN_TYPE(_alignment, _type) _type __attribute__((aligned(_alignment)))
@@ -257,6 +257,10 @@ void _ReadWriteBarrier(void);
#pragma intrinsic(_ReadWriteBarrier)
#define PIPE_READ_WRITE_BARRIER() _ReadWriteBarrier()
+#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+
+#define PIPE_READ_WRITE_BARRIER() __machine_rw_barrier()
+
#else
#warning "Unsupported compiler"