From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12900 invoked by alias); 29 Sep 2003 14:41:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12890 invoked by alias); 29 Sep 2003 14:41:34 -0000 Date: Mon, 29 Sep 2003 15:29:00 -0000 Message-ID: <20030929144134.12889.qmail@sources.redhat.com> From: "rguenth at tat dot physik dot uni-tuebingen dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030729120327.11706.rguenth@tat.physik.uni-tuebingen.de> References: <20030729120327.11706.rguenth@tat.physik.uni-tuebingen.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/11706] std::pow(T, int) implementation pessimizes code X-Bugzilla-Reason: CC X-SW-Source: 2003-09/txt/msg02233.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11706 ------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2003-09-29 14:41 ------- Subject: Re: std::pow(T, int) implementation pessimizes code On 29 Sep 2003, gdr at integrable-solutions dot net wrote: > PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11706 > > > > ------- Additional Comments From gdr at integrable-solutions dot net 2003-09-29 14:36 ------- > Subject: Re: std::pow(T, int) implementation pessimizes code > > "rguenth at tat dot physik dot uni-tuebingen dot de" writes: > > | Any progress on this? I still think this is a show stopper. What about the > | suggested replacement of the __pow_helper() with ::pow() which is now > | optimized by an appropriate builtin? > > should not use ::pow -- it is not supposed to be available there. > The issue should now be reevaluated with the recent work on inlining. > I did not have time to work on it though. Its still the very same. The (pending?) fix for PR11707 should help a little bit, but as PR11710 will not be fixed this wont help the underlying problem. Why exactly should cmath not use ::pow (or __builtin_pow())? Has it to work with other compilers than the gcc it shipped with? Richard. -- Richard Guenther WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/