mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 12:50:25 +01:00
gallium: New ALIGN_STACK macro to tell gcc to align stack pointer.
This commit is contained in:
parent
5ba645f0fb
commit
68edb4eac5
1 changed files with 6 additions and 0 deletions
|
|
@ -167,11 +167,17 @@ 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)
|
||||
#define ALIGN_STACK __attribute__((force_align_arg_pointer))
|
||||
#else
|
||||
#define ALIGN_STACK
|
||||
#endif
|
||||
#else
|
||||
#define ALIGN16_DECL(TYPE, NAME, SIZE) TYPE NAME##___unaligned[SIZE + 1]
|
||||
#define ALIGN16_ASSIGN(NAME) align16(NAME##___unaligned)
|
||||
#define ALIGN16_ATTRIB
|
||||
#define ALIGN8_ATTRIB
|
||||
#define ALIGN_STACK
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue