From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12671 Path: news.gmane.org!.POSTED!not-for-mail From: ardi Newsgroups: gmane.linux.lib.musl.general Subject: Re: Views on bare metal port Date: Sun, 1 Apr 2018 22:12:32 +0200 Message-ID: References: <20180131152507.GO1627@brightrain.aerifal.cx> <20180131182546.GL4418@port70.net> <20180401142905.GF4418@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1522613446 22386 195.159.176.226 (1 Apr 2018 20:10:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2018 20:10:46 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12685-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 01 22:10:42 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1f2jJK-0005k4-2a for gllmg-musl@m.gmane.org; Sun, 01 Apr 2018 22:10:42 +0200 Original-Received: (qmail 21587 invoked by uid 550); 1 Apr 2018 20:12:46 -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 21567 invoked from network); 1 Apr 2018 20:12:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=qS+EOSrYL+0chxgsAxI3cbIK2/TlM1r2EFoOkJOfMCU=; b=cqb5pncLYrT1Y+UalNiDldNAIxalE0ZDoY5T2+AJhyMWVOK+43gM3I5yMhtD+XQ9Yg mBEO4O7mDc0wx4jzAwk1tiY3nTKn+AjNZCVQtWyUIYGfBgnQFct6plXiqW/cbbr3yzlq k6YLRFt4DUJJxCEJPkB+l4fYXNUyfHLoAd+ueiSmTBx0bRDjR3CxLvb054n+i7pLtbqn aTOMGQy0NAhJfFBxtBinsuww/rZ190yN27NjStGJgCsBGtv/Y1Bsiu0izrRLDn1Nx227 527XGvUhPLU1awYAV78gHf26PupzNlBI61aDFlQ0AyZ3QNhIyEFFWoagiclNjqvBzW8p kUAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=qS+EOSrYL+0chxgsAxI3cbIK2/TlM1r2EFoOkJOfMCU=; b=ePK6tlbAPlps/imQ32xhNII7rY98wTZ3IApozTX++rnLefjvwEz8eeyamFHiLUKwt/ CvEUUq+AjzcNR0f83zt79BaCzfY/X4E48Ko2yEXp3pvh9wgnek3Kj3v0HqiZfcUYB8G3 9SrZD0LKcZ833KEeqSmRh8la70O/d0aS6VvaKZ/QSx4kYPc9N0MbaCLDfYuYbvGxitUE aKn5YWSG3+d0ObT7qK3ETySsUC3BTbe5jfc0d/LObmFVt0c+y7CHtPtuWFDldaa0mIpK X7uSfP/BzyEbjTRSonLFN0W+CdcpE9eg+xo4ur0TyEUPEdq8lTI+yFjoiapOHLrf/RYJ PV6w== X-Gm-Message-State: AElRT7H6ZYTdcaRzoPIagmT1qL4LtYbfHYhnPeB/8I37dLLQkHMFJkd9 Kon46CBhyla3v3u2v84415n3sPgnDaj830Cy/B4= X-Google-Smtp-Source: AIpwx499vGwHthwBkHDdUa4vq/suoL2B/ExmPL8I4N8Ts0oOv0mq+kjAy2GkwgVx1pGtc3mMZ4cX9Ndndf+488dHn64= X-Received: by 10.107.16.227 with SMTP id 96mr6731109ioq.290.1522613553414; Sun, 01 Apr 2018 13:12:33 -0700 (PDT) In-Reply-To: <20180401142905.GF4418@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:12671 Archived-At: On Sun, Apr 1, 2018 at 4:29 PM, Szabolcs Nagy wrote: > in short: > > most things will work even if musl is compiled by a > compiler without fenv access support, but it won't > be fully conforming when the caller changes or tests > the fenv. Thanks a lot for your detailed clarifications! I never change the rounding mode in my code, nor use the functions you mention, so I think I'm safe to use clang with musl. BTW, am I correct in assuming that these clang rounding mode issues happen in all C runtimes in all OSs (MacOS included), or do some C runtimes apply some hacks for preventing this behaviour? I feel a bit puzzled about MacOS not saying a word about this in the docs. For example, the MacOS manpages for fesetround() and for the functions you mention, don't say a word about possible undesired behaviour with clang. Thanks! ardi