NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/57312: Missing atomic symbols generated by gcc



The following reply was made to PR lib/57312; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/57312: Missing atomic symbols generated by gcc
Date: Thu, 30 Mar 2023 17:33:28 +0200

 On Thu, Mar 30, 2023 at 03:20:00PM +0000, campbell+netbsd%mumble.net@localhost wrote:
 > Cases where symbols are missing:
 > 
 > - On architectures that don't natively have CAS, like sparc, hppa, and early mips.
 > - For objects of unnaturally large sizes, for which atomic_is_lock_free is false and locking is required.
 
 We have some tests for some of these symbolse in src/tests/lib/libc/atomic.
 
 > - When the -fno-inline-atomics flag is passed.
 
 We should probably build a second version of all of the tests with this
 flag added.
 
 That way we can actually test the libc version (instead of the builtin
 code generated for most cases in regular builds on most cpus).
 
 Keeping the original version with (most of the time) inlined code
 and test that as well is good (to find bugs in the compiler integration).
 
 Martin
 


Home | Main Index | Thread Index | Old Index