toolchain: don't define __stack outside C code

__stack is defined as a C language attribute for on-stack arrays. Don't
define it outside C source code.
This definition conflicts with __stack symbol defined in xtensa linker.ld
files.

Change-Id: I59fe34603bc2bb5732ed45c7974de5f8b25d77ed
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
Max Filippov 2017-02-16 10:37:25 -08:00 committed by Andrew Boie
parent c8112aaeec
commit 5c6276da72
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@
/* Indicate that an array will be used for stack space. */
#define __stack __aligned(STACK_ALIGN)
#if !defined(_ASMLANGUAGE)
#define __stack __aligned(STACK_ALIGN)
#endif
/* concatenate the values of the arguments into one */
#define _DO_CONCAT(x, y) x ## y