public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/40019] [4.4 only] LEADZ and TRAILZ give wrong results
Date: Wed, 03 Jun 2009 19:39:00 -0000	[thread overview]
Message-ID: <20090603193926.6066.qmail@sourceware.org> (raw)
In-Reply-To: <bug-40019-10259@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from burnus at gcc dot gnu dot org  2009-06-03 19:39 -------
Subject: Bug 40019

Author: burnus
Date: Wed Jun  3 19:39:09 2009
New Revision: 148143

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148143
Log:
2009-06-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

        PR fortran/40019
        * trans-types.c (gfc_build_uint_type): Make nonstatic.
        * trans.h (gfor_fndecl_clz128, gfor_fndecl_ctz128): New
        * prototypes.
        * trans-types.h (gfc_build_uint_type): Add prototype.
        * trans-decl.c (gfc_build_intrinsic_function_decls): Build
        gfor_fndecl_clz128 and gfor_fndecl_ctz128.
        * trans-intrinsic.c (gfc_conv_intrinsic_leadz,
        gfc_conv_intrinsic_trailz): Call the right builtins or library
        functions, and cast arguments to unsigned types first.
        * simplify.c (gfc_simplify_leadz): Deal with negative arguments.


2009-06-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

        PR fortran/40019
        * intrinsics/bit_intrinsics.c: New file.
        * gfortran.map (GFORTRAN_1.2): New list.
        * Makefile.am: Add intrinsics/bit_intrinsics.c.
        * Makefile.in: Regenerate.


2009-06-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

        PR fortran/40019
        * gfortran.dg/leadz_trailz_1.f90: New test.
        * gfortran.dg/leadz_trailz_2.f90: New test.

-- Diese und die folgenden Zeilen werden ignoriert --

M    libgfortran/Makefile.in
A    libgfortran/intrinsics/bit_intrinsics.c
M    libgfortran/ChangeLog
M    libgfortran/gfortran.map
M    libgfortran/Makefile.am
M    gcc/testsuite/ChangeLog
A    gcc/testsuite/gfortran.dg/leadz_trailz_2.f90
A    gcc/testsuite/gfortran.dg/leadz_trailz_1.f90
M    gcc/fortran/ChangeLog
M    gcc/fortran/trans-types.c
M    gcc/fortran/trans.h
M    gcc/fortran/trans-types.h
M    gcc/fortran/trans-decl.c
M    gcc/fortran/trans-intrinsic.c
M    gcc/fortran/simplify.c

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/leadz_trailz_1.f90
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/leadz_trailz_2.f90
    branches/gcc-4_4-branch/libgfortran/intrinsics/bit_intrinsics.c
Modified:
    branches/gcc-4_4-branch/gcc/fortran/ChangeLog
    branches/gcc-4_4-branch/gcc/fortran/simplify.c
    branches/gcc-4_4-branch/gcc/fortran/trans-decl.c
    branches/gcc-4_4-branch/gcc/fortran/trans-intrinsic.c
    branches/gcc-4_4-branch/gcc/fortran/trans-types.c
    branches/gcc-4_4-branch/gcc/fortran/trans-types.h
    branches/gcc-4_4-branch/gcc/fortran/trans.h
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/libgfortran/ChangeLog
    branches/gcc-4_4-branch/libgfortran/Makefile.am
    branches/gcc-4_4-branch/libgfortran/Makefile.in
    branches/gcc-4_4-branch/libgfortran/gfortran.map


-- 


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


  parent reply	other threads:[~2009-06-03 19:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-04 19:36 [Bug fortran/40019] New: " fxcoudert at gcc dot gnu dot org
2009-05-19 22:24 ` [Bug fortran/40019] " fxcoudert at gcc dot gnu dot org
2009-05-27  7:45 ` burnus at gcc dot gnu dot org
2009-05-27 10:28 ` fxcoudert at gcc dot gnu dot org
2009-05-29 21:28 ` burnus at gcc dot gnu dot org
2009-05-29 21:34 ` burnus at gcc dot gnu dot org
2009-06-03 19:39 ` burnus at gcc dot gnu dot org [this message]
2009-06-03 19:40 ` burnus at gcc dot gnu dot org
2009-06-03 19:56 ` rguenth 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=20090603193926.6066.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).