libsel4: arm: Reintroduce -O0 warning

This commit is contained in:
Adrian Danis
2016-05-24 17:01:31 +10:00
parent 39a2c4f108
commit 56f7b3fc8d

View File

@@ -17,6 +17,15 @@
#define __SWINUM(x) ((x) & 0x00ffffff)
#ifndef __OPTIMIZE__
/* With no optimisations (-O0) GCC's register allocator clobbers the
* syscall arguments before you reach the 'swi' and you invoke the kernel
* incorrectly.
* See SELFOUR-187
*/
#warning you are compiling with -O0; syscalls will most likely not work
#endif
static inline void
seL4_Send(seL4_CPtr dest, seL4_MessageInfo_t msgInfo)
{