From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19939 invoked by alias); 25 Jul 2013 16:12:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19840 invoked by uid 48); 25 Jul 2013 16:12:35 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/57974] std::pow(std::complex(0),1) returns (-nan,-nan) Date: Thu, 25 Jul 2013 16:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 X-SW-Source: 2013-07/txt/msg01231.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57974 --- Comment #8 from Uro=C5=A1 Bizjak --- (In reply to Paolo Carlini from comment #7) > However it's still not clear to me why this inconsistency doesn't happen > with clang or icc, for example. I'm not convinced we are doing our job in > the best way and I don't think we are going to make users happy. It's pre= tty > easy to internally call in the c++ library or in user code another builtin > which does produce a -inf without the user knowing and then passes it to a > function like exp. If some of our builtins produce something which our ot= her > builtins aren't able to handle consistently we are looking for trouble. But, then -funsafe-math-optimizations shouldn't be used. >>From gcc-bugs-return-426725-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jul 25 16:15:17 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26134 invoked by alias); 25 Jul 2013 16:15:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26047 invoked by uid 48); 25 Jul 2013 16:15:14 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/57974] std::pow(std::complex(0),1) returns (-nan,-nan) Date: Thu, 25 Jul 2013 16:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg01232.txt.bz2 Content-length: 245 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57974 --- Comment #9 from Paolo Carlini --- Or maybe should be made a little weaker / safer? Are you 100% sure we are beating performancewise clang and icc on this?