NetBSD-Bugs archive

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

Re: port-sh3/60773: sh3 __sync_val_compare_and_swap_1 test failures



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

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: Taylor R Campbell <riastradh%NetBSD.org@localhost>,
	Nick Hudson <skrll%NetBSD.org@localhost>
Subject: Re: port-sh3/60773: sh3 __sync_val_compare_and_swap_1 test failures
Date: Fri, 25 Sep 2026 18:52:34 +0300

 On Fri, Sep 25, 2026 at 14:41:44 +0000, Taylor R Campbell wrote:
 
 > There's probably some shenanigans going on because __sync_* are not
 > normal functions but magic builtins with implicit prototypes.  Is
 > gcc's implicit prototype signed or unsigned?
 
 init_sync_libfuncs_1 in external/gpl3/gcc/dist/gcc/optabs-libfuncs.cc
 seems to be the place where they are materialized.  My gcc-fu is too
 weak to understand what's going on there.  It seems that it is
 eventually used in expand_atomic_compare_and_swap in optabs.cc.  I'm
 lost after that.
 
 -uwe
 



Home | Main Index | Thread Index | Old Index