From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9089 Path: news.gmane.org!not-for-mail From: Markus Wichmann Newsgroups: gmane.linux.lib.musl.general Subject: Re: atomic.h cleanup Date: Mon, 11 Jan 2016 17:35:44 +0100 Message-ID: <20160111163544.GI2016@debian> References: <20160110122139.GF2016@debian> <20160110165718.GR238@brightrain.aerifal.cx> <20160110173509.GG2016@debian> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1452530171 9060 80.91.229.3 (11 Jan 2016 16:36:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2016 16:36:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9102-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jan 11 17:36:03 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aIfRq-0002un-W2 for gllmg-musl@m.gmane.org; Mon, 11 Jan 2016 17:36:03 +0100 Original-Received: (qmail 21542 invoked by uid 550); 11 Jan 2016 16:35:58 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 21516 invoked from network); 11 Jan 2016 16:35:57 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:al7SmL380vtg5pGEpCgQ4JlPnc96/hql2llj2qusb4q4BWud4Oj kve2miDgcD/yjG5RMo+sHpddMd+qZhiIdFkdNf/iFAgDJQNYGAlaVbmhDg0+czTD6ez02nX KdBiFotISHbN0rlrS0Sxg/w7Z2O8RxDfbOml6BYWk0/mkKOte3NA1ciYr32XIlB9r7yMdN8 OIjoUwuzVYN7WVMQTcxRQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:GI4tNpnlldM=:6lBDh0Zdx1vXMHc+QIY8W7 mlGvWNmbn17l7bGMyVIedk2UsqkgjllZge9AqrAj1vVeFJKQmuZjj0yMUlJ9PJO/+XB5n2KaY pRdwhH+uiQeaWI+RrQnDKURY4tm69PHYKKrBuhVWeRDI2tFvsLsCb/xeLu5L5vSolxCpm8Tbx uvRJ/fxL1jlpH3xOOvm+W8dur2BZDUikHN8MBNROoFxSCbOnx2Gm1BNtkCJsCf32+HK5tv44z OY7FXQnJe92b94pNZ3nxffxIt3E47wXC30dsDTQY16hNvzgANqKQfr99uFEWVR2rpOpjL4Xs9 1pNYgUfdSgkcpA0E73vc+7kriPdvDZ0CbMx1uEaCvC3SDk1tNi+Mg+WQN/L/aVodmBj3eA1EE zbcghulKnwXFoV6zSCkSy8E+TKs9bxD9pD3EDQp7ep08arzF2yRwj5DLuVsMA6DoNJX6LtXZe KWoHDeGjOsimHTvHHlQnQv09A7QvnVDQtS5+QcyOiv6Jp3Y+9iYtPny3EbZNNzXIuPFyx2slP y53rMtS6bcgY9CNNghh2kjJ4uTJUouOx48W82XwMPGPwvi/9+8VpAG2kc4y1MuQCq1DkvVRMw MpQQfoUaDwp9IHTDE/sk+S7X4hk0GfKRMmmMpP1xCFs1Tr5J0qFFM2lki4AO4MOJ2G+lQ/JbW W7ih7rgZYk7LP0tAKd7spoj7y/JiHOM0vbIwGgbfqCOVeZvL3UGOzNL69xNdBLe11rcJfaIwl wIAbpZ0qwAuf+c+kUpRNfEDg1iqfUrRAk5A6SC2ZVGIbL0J0jWT/7inh6ic= Xref: news.gmane.org gmane.linux.lib.musl.general:9089 Archived-At: On Sun, Jan 10, 2016 at 08:50:28PM +0300, Alexander Monakov wrote: > "asm goto" is an extension that appeared in gcc 4.5 and is not supported in > clang (I get "error: expected '(' after 'asm'" with clang 3.7). I don't know > why you claim it works with clang. > That's very simple: Because I misremembered. I had tested a lot of things against gcc and clang and thought that file had been among them. But it wasn't. And I didn't test it because building a cross-gcc had been hard enough, so I didn't have the energy to try a cross-clang on that day. So I'm sorry, but it was an honest mistake. > Corresponding llvm bugs (no plans to add support soon): > https://llvm.org/bugs/show_bug.cgi?id=9295 > https://llvm.org/bugs/show_bug.cgi?id=14406 > Really? OK, so it's either suboptimal code for everyone or compiler-specific better code. Why can't we have nice things? OTOH, maybe we simply shouldn't write synchronisation primitives ourselves and instead use the ones provided by GCC (and let other compilers suck on a salty sausage, if they don't support those primitives). Ciao, Markus