Re: clang toolchain doesn't failing to compile properly
Sigvart Hovland
https://github.com/zephyrproject-rtos/zephyr/blob/e3d39032eb91973c6fc696696d442fa0f61f92c4/arch/arm/core/aarch32/thread.c#L449
toggle quoted messageShow quoted text
Pretty sure it was around here. Could be that I'm wrong(haven't found the code that worked I think I deleted the branch) where start_of_main_stack would disappear when I used Clang in combination with GNU tools. Or it was one of _current = main_thread; since it worked when you turned of multi-threading. My biggest gut feeling is that it is start_of_main_stack since it only has assignments and would be viewed from the compiler as never used if it does not look at the assembly.
-----Original Message-----
From: Kumar Gala <kumar.gala@linaro.org> Sent: Thursday, February 6, 2020 4:58 PM To: Hovland, Sigvart <Sigvart.Hovland@nordicsemi.no> Cc: akira.kato@biosensics.com; devel@lists.zephyrproject.org Subject: Re: [Zephyr-devel] clang toolchain doesn't failing to compile properly Sigvart, I’d really appreciate if you could try and remember where you might have added that print to deal with the in-line asm getting optimized away. - k On Jan 31, 2020, at 5:54 AM, Sigvart Hovland <sigvart.hovland@nordicsemi.no> wrote:
|
|