mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #5073 from studavekar/fix-buuld-error-armc6
use gcc assembly for arm 6pull/5080/head
commit
5e437fe5ea
|
@ -74,13 +74,13 @@ static void delay_loop(uint32_t count)
|
|||
: "cc"
|
||||
);
|
||||
}
|
||||
#else // GCC
|
||||
#elif defined ( __GNUC__ ) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
|
||||
MBED_NOINLINE
|
||||
static void delay_loop(uint32_t count)
|
||||
{
|
||||
__asm__ volatile (
|
||||
"%=:\n\t"
|
||||
#if defined(__thumb__) && !defined(__thumb2__)
|
||||
#if defined(__thumb__) && !defined(__thumb2__) && !defined(__ARMCC_VERSION)
|
||||
"SUB %0, #1\n\t"
|
||||
#else
|
||||
"SUBS %0, %0, #1\n\t"
|
||||
|
|
Loading…
Reference in New Issue