re: __atomic_test_and_set() and mips o32 - help wanted

matthew green <[email protected]> Sat, 22 Nov 2025 15:47:45 +1100
Newsgroups gmane.os.netbsd.ports.mips.devel,gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
>  Great!  So all you need is to strap GCC for producing these instructions 
> in gcc/config.gcc, by setting `with_llsc=yes' for your target triplets of 
> interest (you can still override it at the command line at GCC invocation 
> if you need that for any reason).  See the existing pattern there.
>
>  You may have to do some juggling with the configuration of the libraries, 
> but I suspect that'll be enough for GCC to avoid emitting libcalls for any 
> atomic operations missing otherwise.

thanks for the suggestion, it works and i've commited it.

it was just the config.gcc portion (& mknative), libs seemed fine.

thanks again.


.mrg.