public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41219]  New: libgfortran build warnings
@ 2009-09-01 21:09 burnus at gcc dot gnu dot org
  2009-09-03  6:55 ` [Bug fortran/41219] " burnus at gcc dot gnu dot org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-09-01 21:09 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2604 bytes --]

Reported by NightStrike in #gfortran - I see the same in my build logs. Some
annotations, see below.

../../../gcc/libgfortran/io/list_read.c: In function ‘nml_read_obj’:
../../../gcc/libgfortran/io/list_read.c:2470:31: warning: comparison between
‘bt’ and ‘enum <anonymous>’
../../../gcc/libgfortran/io/write.c: In function ‘write_a_char4’:
../../../gcc/libgfortran/io/write.c:328:8: warning: passing argument 2 of
‘write_default_char4’ from incompatible pointer type
../../../gcc/libgfortran/io/write.c:44:1: note: expected ‘gfc_char4_t *’ but
argument is of type ‘const char *’
../../../gcc/libgfortran/io/unix.c: In function ‘fd_to_stream’:
../../../gcc/libgfortran/io/unix.c:750:15: warning: ‘statbuf.st_mode’ may be
used uninitialized in this function
../../../gcc/libgfortran/io/unix.c:750:15: warning: ‘statbuf.st_size’ may be
used uninitialized in this function
../../../gcc/libgfortran/intrinsics/getlog.c: In function ‘_gfortran_getlog’:
../../../gcc/libgfortran/intrinsics/getlog.c:85:3: warning: implicit
declaration of function ‘getlogin’
../../../gcc/libgfortran/intrinsics/getlog.c:85:5: warning: assignment makes
pointer from integer without a cast



../../../gcc/libgfortran/intrinsics/iso_c_binding.c: In function
‘__iso_c_binding_c_f_pointer_u0’:
../../../gcc/libgfortran/intrinsics/iso_c_binding.c:112:15: warning: ‘str’ may
be used uninitialized in this function

ISO_C_BINDING_PREFIX (c_f_pointer_u0) (void *c_ptr_in,
      for (i = 0; i < shapeSize; i++)
        {
          index_type str, ub;
          if (i == 0)
              str = 1;
            }
          else
            {
              str = str * GFC_DESCRIPTOR_EXTENT(f_ptr_out,i-1);

That looks like a real bug! The "str" declaration should be moved outside the
loop.



../../../gcc/libgfortran/intrinsics/unpack_generic.c: In function
‘unpack_internal’:
../../../gcc/libgfortran/intrinsics/unpack_generic.c:60:32: warning: unused
parameter ‘fsize’

That's
  unpack_internal (gfc_array_char *ret, const gfc_array_char *vector,
                   const gfc_array_l1 *mask, const gfc_array_char *field,
                   index_type size, index_type fsize)

And probably a side effect of Thomas' bound check work.


-- 
           Summary: libgfortran build warnings
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2010-05-07 17:44 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-01 21:09 [Bug fortran/41219] New: libgfortran build warnings burnus at gcc dot gnu dot org
2009-09-03  6:55 ` [Bug fortran/41219] " burnus at gcc dot gnu dot org
2009-09-03  7:12 ` burnus at gcc dot gnu dot org
2009-09-03  7:37 ` burnus at gcc dot gnu dot org
2009-09-03  8:36 ` ktietz at gcc dot gnu dot org
2009-09-04  9:25 ` burnus at gcc dot gnu dot org
2009-09-06 13:55 ` jb at gcc dot gnu dot org
2009-09-06 18:18 ` jvdelisle at gcc dot gnu dot org
2009-09-06 21:21 ` jvdelisle at gcc dot gnu dot org
2009-09-07  2:57 ` jvdelisle at gcc dot gnu dot org
2009-09-07 11:27 ` sezeroz at gmail dot com
2009-09-08  0:59 ` jvdelisle at gcc dot gnu dot org
2009-09-12  5:36 ` nightstrike at gmail dot com
2009-09-12 14:49 ` jvdelisle at gcc dot gnu dot org
2009-09-12 15:08 ` jvdelisle at gcc dot gnu dot org
2009-09-21 16:31 ` nightstrike at gmail dot com
2009-09-21 16:33 ` nightstrike at gmail dot com
2009-09-21 17:01 ` burnus at gcc dot gnu dot org
2009-09-21 17:36 ` nightstrike at gmail dot com
2009-09-21 18:01 ` kargl at gcc dot gnu dot org
2009-09-21 18:12 ` nightstrike at gmail dot com
2009-10-30 22:38 ` jb at gcc dot gnu dot org
2009-12-29 15:49 ` fxcoudert at gcc dot gnu dot org
2010-05-07 16:01 ` dfranke at gcc dot gnu dot org
2010-05-07 17:18 ` nightstrike at gmail dot com
2010-05-07 17:44 ` sezeroz at gmail dot com

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).