aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>2022-09-19 18:18:58 +0200
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>2022-10-05 11:57:49 +0200
commit1a46a0a8b30405ea353a758971634dabeee89eaf (patch)
treedb84c838a2e0eca1f7ce8d56692a961c00205f87 /gcc/fortran/trans-openmp.cc
parentfa8e3a055a082e38aeab2561a5016b01ebfd6ebd (diff)
downloadgcc-1a46a0a8b30405ea353a758971634dabeee89eaf.zip
gcc-1a46a0a8b30405ea353a758971634dabeee89eaf.tar.gz
gcc-1a46a0a8b30405ea353a758971634dabeee89eaf.tar.bz2
testsuite: 'b' instruction can't do long enough jumps
After moving the testglue in commit 9d503515cee, the jump to exit and abort is too far for the 'b' instruction on Cortex-M0. As most of the C code would generate a 'bl' instruction instead of a 'b' instruction, lets do the same for the inline assembler. The error seen without this patch: /tmp/cccCRiCl.o: in function `main': stack-protector-1.c:(.text+0x4e): relocation truncated to fit: R_ARM_THM_JUMP11 against symbol `__wrap_exit' defined in .text section in gcc_tg.o stack-protector-1.c:(.text+0x50): relocation truncated to fit: R_ARM_THM_JUMP11 against symbol `__wrap_abort' defined in .text section in gcc_tg.o collect2: error: ld returned 1 exit status gcc/testsuite/ChangeLog: * gcc.target/arm/stack-protector-1.c: Use 'bl' instead of 'b' instruction. * gcc.target/arm/stack-protector-3.c: Likewise. Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com> Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions