gallium: remove repeated check
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 8 Jun 2022 09:08:45 +0000 (11:08 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Jun 2022 15:08:38 +0000 (15:08 +0000)
This is already inside an "#if defined(__GNUC__)" conditional, there's no
need to repeat the __GNUC__-check.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16908>

src/gallium/include/pipe/p_compiler.h

index dfcfa19..b951ac1 100644 (file)
@@ -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