public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mikael at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/51828] libgfortran build warnings
Date: Mon, 27 Feb 2012 21:41:00 -0000	[thread overview]
Message-ID: <bug-51828-4-pnuQgSCl2K@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-51828-4@http.gcc.gnu.org/bugzilla/>

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

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikael at gcc dot gnu.org

--- Comment #4 from Mikael Morin <mikael at gcc dot gnu.org> 2012-02-27 21:17:39 UTC ---
(In reply to comment #3)
> (In reply to comment #0)
> > libgfortran/intrinsics/unpack_generic.c: In function 'unpack_internal':
> 
> The warnings are bogus - assuming that "dim > 0" - as:
> 
>   if (ret->data == NULL)
>       dim = GFC_DESCRIPTOR_RANK (mask);
>       for (n = 0; n < dim; n++)
>           rstride[n] = GFC_DESCRIPTOR_STRIDE_BYTES(ret, n);
>   else
>       dim = GFC_DESCRIPTOR_RANK (ret);
>       for (n = 0; n < dim; n++)
>           rstride[n] = GFC_DESCRIPTOR_STRIDE_BYTES(ret, n);
> 
>   rstride0 = rstride[0]; /* << may be used uninitialized in this function */

rstride0 = GFC_DESCRIPTOR_STRIDE_BYTES(ret, 0);  ?

assert (dim > 0); ?

otherwise -> WONTFIX : the compiler can't know that dim > 0.


  parent reply	other threads:[~2012-02-27 21:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-11 20:44 [Bug fortran/51828] New: " burnus at gcc dot gnu.org
2012-01-11 20:58 ` [Bug fortran/51828] " dominiq at lps dot ens.fr
2012-01-11 21:06 ` burnus at gcc dot gnu.org
2012-01-11 22:33 ` burnus at gcc dot gnu.org
2012-02-27 21:41 ` mikael at gcc dot gnu.org [this message]
2013-11-18  9:27 ` [Bug libfortran/51828] " fxcoudert at gcc dot gnu.org
2013-11-18  9:28 ` fxcoudert at gcc dot gnu.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=bug-51828-4-pnuQgSCl2K@http.gcc.gnu.org/bugzilla/ \
    --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).