Until now "gcc -mslow-flash-data" exited with an error when TLS variable was used. The series relaxes this constraint. More details are provided in the description of the first patch.
Note: An AI helped me to setup the testsuite and wrote the second patch. I have have added it as a Co-author, but I don't what is the exact policy. The results of the gcc tests are available in the PR I have submitted to the Zephyr project: https://github.com/zephyrproject-rtos/sdk-ng/actions/runs/21486898094/job/61898548191?pr=1054 Jérôme Pouiller (2): arm: Allow TLS access with -mslow-flash-data arm: testsuite: Update and add tests for TLS with -mslow-flash-data gcc/config/arm/arm.cc | 33 ++++++++++++----- .../arm/thumb2-slow-flash-data-tls.c | 35 +++++++++++++++++++ .../gcc.target/arm/tls-disable-literal-pool.c | 5 ++- 3 files changed, 61 insertions(+), 12 deletions(-) create mode 100644 gcc/testsuite/gcc.target/arm/thumb2-slow-flash-data-tls.c -- 2.47.3
