mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
9b69afe541
commit
d42cef891c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue