From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 87DD23858C50; Sun, 2 Apr 2023 21:27:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 87DD23858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680470823; bh=SZb7UITilkBjPw3dnwXIsU1Ac83UIkHJ2l03HO0QK48=; h=From:To:Subject:Date:In-Reply-To:References:From; b=L3YNzb/0DICTqh/PySwnE2aEC8q587iHq8H4LF8x4wLtuPOVwElOxc+aVuV2zIZgm llqFyuRL/fUIhv7zra6bHQ9/UkEy5OSZdxJWXdaxzoG6013em+2lg8F0Pa24/yIJgL O2w3YsEu+k0ZDvOxdw/DifbQ3dyRNRFLgnckVWQ0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109378] improve __builtin_sqrt Date: Sun, 02 Apr 2023 21:27:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109378 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |*-linux-gnu --- Comment #3 from Andrew Pinski --- (In reply to g.peterhoff from comment #2) > But this is of no use if I want to compile something "normally" without > compiler specific options. Note some libc implementations don't implement setting errno on math functi= ons (e.g. Darwin) and for those targets, -fno-math-errno is already the defaul= t. So if you don't need to check errno, then you can use -fno-math-errno. C/C= ++ allows for an implementation to set errno on an error for math functions ev= en. So this is more about you wanting something different from what the implementation does ...=