Re: Work on adding TLS support to LLVM on m68k

2023-01-30 Thread John Paul Adrian Glaubitz
Hi Finn! On 1/29/23 01:15, Finn Thain wrote: The developers of the TLS/NPTL support for m68k/coldfire were working for Freescale and Codesourcery at the time... https://lists.debian.org/debian-68k/2008/02/msg00212.html https://lists.debian.org/debian-68k/2007/11/msg00071.html Thanks, these

Re: Work on adding TLS support to LLVM on m68k

2023-01-29 Thread Richard
Well afaics Linux/m68k sacrificed a global register (A5 ?) for TLS so that should be the easy start. Not sure if the concept of threads, TLS and such makes any sense on AmigaOS or TOS. Most likely fairly irrelevant as those have a substantially different process/thread model than POSIX.

Re: Work on adding TLS support to LLVM on m68k

2023-01-29 Thread Karoly Balogh
Hi, On Sat, 28 Jan 2023, Chris Hanson wrote: > That said, any compiler or linker for 68K needs to support multiple ABI > standards since Mac OS, Atari, Amiga, and all the different UNIX and > UNIX-like operating systems had their own ABI. Fortunately LLVM itself > supports the concept of

Re: Work on adding TLS support to LLVM on m68k

2023-01-28 Thread Finn Thain
On Sat, 28 Jan 2023, John Paul Adrian Glaubitz wrote: > Hello! > > The maintainers of the m68k backend in LLVM have started initial > planning for adding TLS support. An issue for that has been opened in > the LLVM Github tracker [1]. > > If anyone can help shed more light on how TLS works

Re: Work on adding TLS support to LLVM on m68k

2023-01-28 Thread Chris Hanson
There wasn't really a TLS standard on any 68K ABIs that I know about. If the SVR4 ABI for 68K defined one then that's probably the one I'd use for LLVM's default, as most everything else should follow the SVR4 ABI for 68K by default too, right? That said, any compiler or linker for 68K needs

Work on adding TLS support to LLVM on m68k

2023-01-28 Thread John Paul Adrian Glaubitz
Hello! The maintainers of the m68k backend in LLVM have started initial planning for adding TLS support. An issue for that has been opened in the LLVM Github tracker [1]. If anyone can help shed more light on how TLS works on m68k, please add your comments to this Github issue. Any