gsdx: remove ALIGN_STACK feature on GCC

Stack is already aligned correctly. Besides GCC optimizes the variable so it doesn't
have any effect except that it generates useless warnings.
This commit is contained in:
Gregory Hainaut 2015-09-11 14:57:02 +02:00
parent 9b69afe541
commit d42cef891c
1 changed files with 6 additions and 0 deletions

View File

@ -228,7 +228,13 @@ struct aligned_free_second {template<class T> void operator()(T& p) {_aligned_fr
#define countof(a) (sizeof(a) / sizeof(a[0]))
// GCC removes the variable as dead code and generates some warnings.
// Stack is automatically realigned due to SSE/AVX operations
#ifdef __GNUC__
#define ALIGN_STACK(n) (void)0;
#else
#define ALIGN_STACK(n) __aligned(int, n) __dummy;
#endif
#ifndef RESTRICT