https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106282
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andreas Schwab <sch...@gcc.gnu.org>: https://gcc.gnu.org/g:55bc61a75a68d1a8d1e4df170b4beef1020f1e55 commit r13-6867-g55bc61a75a68d1a8d1e4df170b4beef1020f1e55 Author: Andreas Schwab <sch...@linux-m68k.org> Date: Sun Jul 17 23:35:05 2022 +0200 m68k: handle TLS access with offset This reinstates FINAL_PRESCAN_INSN, and the calls in handle_move_double, so that access to TLS variables with offset are properly handled. gcc: PR target/106282 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define. * config/m68k/m68k.cc (m68k_final_prescan_insn): Define. (handle_move_double): Call it before handle_movsi. * config/m68k/m68k-protos.h: Declare it. gcc/testsuite: PR target/106282 * gcc.target/m68k/tls-gd-off.c: New. * gcc.target/m68k/tls-ie-off.c: New. * gcc.target/m68k/tls-ld-off.c: New. * gcc.target/m68k/tls-ld-xtls-off.c: New. * gcc.target/m68k/tls-le-off.c: New. * gcc.target/m68k/tls-le-xtls-off.c: New. * gcc.target/m68k/tls-ld.c: Make pattern less strict. * gcc.target/m68k/tls-le.c: Likewise.