Mesa (master): gallium: Disable force_align_arg_pointer attribute on x86_64 .

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Dec 4 21:27:32 UTC 2009


Module: Mesa
Branch: master
Commit: 818fd6b10182931a0727819f275f7f1686df09f5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=818fd6b10182931a0727819f275f7f1686df09f5

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Dec  4 12:02:22 2009 +0000

gallium: Disable force_align_arg_pointer attribute on x86_64.

Apparently not only unnecessary but also causes gcc to complain.

---

 src/gallium/include/pipe/p_compiler.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index c36286f..f7368bb 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -167,7 +167,7 @@ typedef unsigned char boolean;
 #define ALIGN16_ASSIGN(NAME) NAME##___aligned
 #define ALIGN16_ATTRIB  __attribute__(( aligned( 16 ) ))
 #define ALIGN8_ATTRIB  __attribute__(( aligned( 8 ) ))
-#if __GNUC__ > 4 || (__GNUC__ == 4 &&__GNUC_MINOR__>1)
+#if (__GNUC__ > 4 || (__GNUC__ == 4 &&__GNUC_MINOR__>1)) && !defined(PIPE_ARCH_X86_64)
 #define ALIGN_STACK __attribute__((force_align_arg_pointer))
 #else
 #define ALIGN_STACK




More information about the mesa-commit mailing list