From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16884 invoked by alias); 11 Sep 2007 09:54:36 -0000 Received: (qmail 16850 invoked by uid 48); 11 Sep 2007 09:54:26 -0000 Date: Tue, 11 Sep 2007 09:54:00 -0000 Subject: [Bug fortran/33387] New: Fortran front-end should translate intrinsics by calling C99 function instead of libgfortran functions X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert 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: 2007-09/txt/msg00868.txt.bz2 Some Fortran intrinsics, like NEAREST or EXPONENT, are translated into calls to libgfortran functions, which in turn call C99 functions. We could easily generate C99 calls directly from the front-end, which would enable further optimization by the middle-end. The list of intrinsics I think of for which we can do that is: EXPONENT, FRACTION, NEAREST, RRSPACING, SET_EXPONENT and SPACING. -- Summary: Fortran front-end should translate intrinsics by calling C99 function instead of libgfortran functions Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: fortran AssignedTo: fxcoudert at gcc dot gnu dot org ReportedBy: fxcoudert at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33387