vTaskSwitchContext() Linker error when link time optimization is enabled (-flto) on gcc and STM32

Gaurav,

Isn’t there another change also needed?

It is already tagged here: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/master/include/task.h#L2464

Thanks.

I can confirm that it does indeed fix the problem.

Thanks,

  Carl