From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21718 invoked by alias); 8 Nov 2013 13:13:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 21701 invoked by uid 89); 8 Nov 2013 13:13:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.3 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPAM_SUBJECT,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: relay1.mentorg.com Received: from Unknown (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Nov 2013 13:13:42 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1VelsH-00019X-Ml from joseph_myers@mentor.com ; Fri, 08 Nov 2013 05:13:21 -0800 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 8 Nov 2013 05:13:21 -0800 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Fri, 8 Nov 2013 13:13:20 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.76) (envelope-from ) id 1VelsE-0001Lt-Og; Fri, 08 Nov 2013 13:13:18 +0000 Date: Fri, 08 Nov 2013 13:33:00 -0000 From: "Joseph S. Myers" To: Uros Bizjak CC: Jakub Jelinek , "gcc-patches@gcc.gnu.org" , Andrew MacLeod , Mike Stump , , Jason Merrill , Richard Henderson , "jh@suse.cz" Subject: Re: Implement C11 _Atomic In-Reply-To: Message-ID: References: <20131107164555.GI27813@tucnak.zalov.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2013-11/txt/msg00896.txt.bz2 On Fri, 8 Nov 2013, Uros Bizjak wrote: > Can we introduce a target-dependant source here, in the same way as Sure, that seems a reasonable thing to do. I think putting a file fenv.c in an appropriate subdirectory of libatomic/config will result in it being found automatically by the existing search path logic, but you'll need to test that. The present code essentially follows what glibc's feraiseexcept does for lots of architectures, but with generic C code where the glibc code tends to use asms to control the exact instructions used (and thereby avoid the need for volatile, I suppose). -- Joseph S. Myers joseph@codesourcery.com