summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2022-06-08 11:14:01 +0200
committerMarge Bot <emma+marge@anholt.net>2022-06-14 15:08:38 +0000
commit8fbad5e42fd7084c1838ab5dc9c8e39f47d4e289 (patch)
tree89f724d1ae4a5dfb1b5c53f1b5d81a22109a27f4
parentd1349eb50014a63da7e060a194fbab31c5ea7880 (diff)
gallium: clean up PIPE_ALIGN_STACK-definition
There's really just one case where this is supported; on GCC for x86. All other cases do nothing, so let's remove the complexity that is no longer needed. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>
-rw-r--r--src/gallium/include/pipe/p_compiler.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index f543236a0e1..86dab57b196 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -104,28 +104,12 @@ typedef unsigned char boolean;
/* Macro for stack alignment. */
-#if defined(__GNUC__)
-
-#ifdef PIPE_ARCH_X86
+#if defined(__GNUC__) && defined(PIPE_ARCH_X86)
#define PIPE_ALIGN_STACK __attribute__((force_align_arg_pointer))
#else
#define PIPE_ALIGN_STACK
#endif
-#elif defined(_MSC_VER)
-
-#define PIPE_ALIGN_STACK
-
-#elif defined(SWIG)
-
-#define PIPE_ALIGN_STACK
-
-#else
-
-#error "Unsupported compiler"
-
-#endif
-
/**
* Declare a variable on its own cache line.
*