Mesa (main): gallium: remove repeated check
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 14 15:50:07 UTC 2022
Module: Mesa
Branch: main
Commit: ea7ba77be99f3d0729b4c30a50f504d0f8744bd7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea7ba77be99f3d0729b4c30a50f504d0f8744bd7
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Wed Jun 8 11:08:45 2022 +0200
gallium: remove repeated check
This is already inside an "#if defined(__GNUC__)" conditional, there's no
need to repeat the __GNUC__-check.
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>
---
src/gallium/include/pipe/p_compiler.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index dfcfa196cfb..b951ac108b3 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -120,7 +120,7 @@ typedef unsigned char boolean;
/* See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Variable-Attributes.html */
#define PIPE_ALIGN_VAR(_alignment) __attribute__((aligned(_alignment)))
-#if defined(__GNUC__) && defined(PIPE_ARCH_X86)
+#ifdef PIPE_ARCH_X86
#define PIPE_ALIGN_STACK __attribute__((force_align_arg_pointer))
#else
#define PIPE_ALIGN_STACK
More information about the mesa-commit
mailing list