gallium: Disable force_align_arg_pointer attribute on x86_64.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 4 Dec 2009 12:02:22 +0000 (12:02 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 4 Dec 2009 21:27:03 +0000 (21:27 +0000)
Apparently not only unnecessary but also causes gcc to complain.

src/gallium/include/pipe/p_compiler.h

index c36286f9bee49b1eac55f3c798f5dad8a9b7c41a..f7368bb95b354819322765af1c146aa7deb2766a 100644 (file)
@@ -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