Commit aa54d75
committed
[zep fromtree] platform: stm: workaround compiler error
Make local function DMA_List_CheckNodesBaseAddresses() never inlined.
This fixes a build issue faced with with STM32H5 DMA HAL when building
TF-M for regression tests with GCC11 and GCC12 compilers with optimization
directives. The build issue is not very explicit, as reported by the
build error trace message below:
during GIMPLE pass: evrp
/__w/zephyr/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/stm/common/stm32h5xx/hal/Src/stm32h5xx_hal_dma_ex.c: In function 'HAL_DMAEx_List_ReplaceNode_Head':
/__w/zephyr/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/stm/common/stm32h5xx/hal/Src/stm32h5xx_hal_dma_ex.c:4683:1: internal compiler error: Segmentation fault
4683 | }
| ^
0x7f6e24cfb32f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7f6e24ce01c9 __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0x7f6e24ce028a __libc_start_main_impl
../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://github.com/zephyrproject-rtos/sdk-ng/issues> for instructions.
The issue was tracked in GCC [1] and has been addressed in GCC 13 and later.
This fix is equivalent to a fix already applied to HAL driver of stm32u5
and stm32wbaxx platforms, see commit 578a6f4 and ec61e69.
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106878 [1]
Change-Id: I49479c45ad3407b715ef337dccb8cc9707d7c721
Signed-off-by: Tim Pambor <[email protected]>
(cherry picked from commit a2f9eb776420357dc5c747d904bc10368de51268)1 parent 9889df4 commit aa54d75
File tree
1 file changed
+8
-0
lines changed- platform/ext/target/stm/common/stm32h5xx/hal/Src
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
537 | 540 | | |
| 541 | + | |
538 | 542 | | |
539 | 543 | | |
540 | 544 | | |
| |||
4071 | 4075 | | |
4072 | 4076 | | |
4073 | 4077 | | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
4074 | 4081 | | |
| 4082 | + | |
4075 | 4083 | | |
4076 | 4084 | | |
4077 | 4085 | | |
| |||
0 commit comments