error: #1113: Inline assembler not permitted when generating Thumb code

Hi,

i want use uSTL library with FreeRTOS. When I compiling i get the error:

..ustl/uutility.h(356): error: #1113: Inline assembler not permitted when generating Thumb code

The code(linie 356 is: asm("":+g... ):

template <typename DEST, typename SRC>
inline DEST noalias (const DEST&, SRC* s)
{
    asm("":"+g"(s)::"memory");
    union UPun { SRC s; DEST d; };
    return (((UPun*)(s))->d);
}

Do you have same idea how I can solve this problem?

More questions in this forum