public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/33387] Fortran front-end should translate intrinsics by calling C99 function instead of libgfortran functions
Date: Wed, 27 Feb 2008 14:33:00 -0000	[thread overview]
Message-ID: <20080227143247.18868.qmail@sourceware.org> (raw)
In-Reply-To: <bug-33387-10259@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2008-02-27 14:32 -------
Subject: Bug 33387

Author: fxcoudert
Date: Wed Feb 27 14:32:02 2008
New Revision: 132713

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132713
Log:
        PR fortran/33387

        * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
        gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
        gfor_fndecl_math_exponent16.
        * f95-lang.c (build_builtin_fntypes): Add new function types.
        (gfc_init_builtin_functions): Add new builtins for nextafter,
        frexp, ldexp, fabs, scalbn and inf.
        * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
        (gfc_resolve_scale): Don't convert type of second argument.
        (gfc_resolve_set_exponent): Likewise.
        (gfc_resolve_size): Don't add hidden arguments.
        * trans-decl.c: Remove gfor_fndecl_math_exponent4,
        gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
        gfor_fndecl_math_exponent16.
        * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
        for scalbn, fraction, nearest, rrspacing, set_exponent and
        spacing.
        (gfc_conv_intrinsic_exponent): Directly call frexp.
        (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
        gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
        gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
        functions.
        (gfc_conv_intrinsic_function): Use the new functions above.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/f95-lang.c
    trunk/gcc/fortran/iresolve.c
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33387


  parent reply	other threads:[~2008-02-27 14:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-11  9:54 [Bug fortran/33387] New: " fxcoudert at gcc dot gnu dot org
2007-09-11  9:55 ` [Bug fortran/33387] " fxcoudert at gcc dot gnu dot org
2007-09-11  9:55 ` fxcoudert at gcc dot gnu dot org
2007-09-11 13:03 ` fxcoudert at gcc dot gnu dot org
2007-09-22 23:35 ` fxcoudert at gcc dot gnu dot org
2007-09-22 23:36 ` fxcoudert at gcc dot gnu dot org
2008-02-25 12:05 ` fxcoudert at gcc dot gnu dot org
2008-02-27 14:33 ` fxcoudert at gcc dot gnu dot org [this message]
2008-02-27 14:34 ` fxcoudert at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080227143247.18868.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).