The following code snippet will throw "expression too complex" error when relaxation is enabled:
.word %pmem(L1 - L2)
Note that with relaxation disabled, there is no issue.
Note: This causes GCC gcc.c-torture/execute/pr70460.c test case to fail.
Solution is to add PRU_32_PMEMDIFF and PRU_16_PMEMDIFF relocations.
The following code snippet will throw "expression too complex" error when relaxation is enabled:
.word %pmem(L1 - L2)
Note that with relaxation disabled, there is no issue.Note: This causes GCC gcc.c-torture/execute/pr70460.c test case to fail.
Solution is to add PRU_32_PMEMDIFF and PRU_16_PMEMDIFF relocations.