From f1b5f2b157a092e93590bd43544fbf2671edab36 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Sun, 7 Dec 2014 00:09:40 +1100 Subject: mesa: use build flag to ensure stack is realigned on x86 Nowadays GCC assumes stack pointer is 16-byte aligned even on 32-bits, but that is an assumption OpenGL drivers (or any dynamic library for that matter) can't afford to make as there are many closed- and open- source application binaries out there that only assume 4-byte stack alignment. V4: fix comment and indentation V3: move all sse4.1 build flag config to the same location and add comment as to why we need to do the realign V2: use $target_cpu rather than $host_cpu and setup build flags in config rather than makefile https://bugs.freedesktop.org/show_bug.cgi?id=86788 Signed-off-by: Timothy Arceri Reviewed-by: Matt Turner CC: "10.4" --- src/mesa/main/sse_minmax.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/sse_minmax.c b/src/mesa/main/sse_minmax.c index 93cf2a6be30..222ac14542e 100644 --- a/src/mesa/main/sse_minmax.c +++ b/src/mesa/main/sse_minmax.c @@ -31,9 +31,6 @@ #include void -#if !defined(__x86_64__) - __attribute__((force_align_arg_pointer)) -#endif _mesa_uint_array_min_max(const unsigned *ui_indices, unsigned *min_index, unsigned *max_index, const unsigned count) { -- cgit v1.2.3