From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30764 invoked by alias); 15 Feb 2008 15:51:25 -0000 Received: (qmail 27079 invoked by uid 48); 15 Feb 2008 15:50:39 -0000 Date: Fri, 15 Feb 2008 15:51:00 -0000 Message-ID: <20080215155039.27078.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/35202] [4.1/4.2/4.3 Regression] exp->expf transformation incorrect with -fmath-errno In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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 X-SW-Source: 2008-02/txt/msg01705.txt.bz2 ------- Comment #3 from rguenth at gcc dot gnu dot org 2008-02-15 15:50 ------- Ok, so with -fmath-errno the middle-end has to assume that the C library will set errno appropriately for all math functions this is specified, even if optional. Right? So we could at most detect at compile-time if there is a macro named math_errhandling and defined to a constant by the library that says it doesn't set errno and in this case clear -fmath-errno? -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-02-15 15:50:39 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35202