]> begriffs open source - freertos/commit
add portDONT_DISCARD to pxCurrentTCB (#479)
authorPatrick Oppenlander <patrick.oppenlander@gmail.com>
Tue, 2 Aug 2022 10:39:58 +0000 (20:39 +1000)
committerGitHub <noreply@github.com>
Tue, 2 Aug 2022 10:39:58 +0000 (16:09 +0530)
commitbfe057367d1ac7b8af4ea8f97b4f753457de3205
tree1ebcd82cce31abf00965069f88697b29393ae3c6
parentc22f40d9a5e239fdfd98bfc210a33c26a627b9f6
add portDONT_DISCARD to pxCurrentTCB (#479)

This fixes link failures with LTO:

/tmp/ccJbaKaD.ltrans0.ltrans.o: in function `pxCurrentTCBConst2':
/root/project/FreeRTOS/portable/GCC/ARM_CM4F/port.c:249: undefined reference to `pxCurrentTCB'
/usr/lib/gcc/arm-none-eabi/11.2.0/../../../../arm-none-eabi/bin/ld: /tmp/ccJbaKaD.ltrans0.ltrans.o: in function `pxCurrentTCBConst':
/root/project/FreeRTOS/portable/GCC/ARM_CM4F/port.c:443: undefined reference to `pxCurrentTCB'
tasks.c