public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13615] g77 -Wuninitialized doesn't produce warning on characters
       [not found] <bug-13615-6709@http.gcc.gnu.org/bugzilla/>
@ 2006-01-09  4:29 ` pinskia at gcc dot gnu dot org
  2006-06-01  8:17 ` paul dot richard dot thomas at cea dot fr
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-09  4:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-01-09 04:29 -------
This is basicially fixed now after PR 12456:
t.f: In function 'warn_integer':
t.f:19: warning: 'a' is used uninitialized in this function
'c[1]{lb: 1 sz: 1}t.f: In function 'warn_character':
t.f:33: warning: ' is used uninitialized in this function


But there is only a diagnostic issue now and not just a missed optimization.


-- 


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



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

* [Bug fortran/13615] g77 -Wuninitialized doesn't produce warning on characters
       [not found] <bug-13615-6709@http.gcc.gnu.org/bugzilla/>
  2006-01-09  4:29 ` [Bug fortran/13615] g77 -Wuninitialized doesn't produce warning on characters pinskia at gcc dot gnu dot org
@ 2006-06-01  8:17 ` paul dot richard dot thomas at cea dot fr
  2006-09-25 12:31 ` [Bug fortran/13615] -Wuninitialized produces wrong error message for characters fxcoudert at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: paul dot richard dot thomas at cea dot fr @ 2006-06-01  8:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from paul dot richard dot thomas at cea dot fr  2006-06-01 08:17 -------
This is still the case; Is this a gfortran issue or a gcc one?

If I give the characters length, using any format, even the anonymous warning
goes away.  In fact, any array expression that I have tried is the same; eg.

      real d(8), c(8) 
      d = c 

is ignored.

Paul


-- 


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


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

* [Bug fortran/13615] -Wuninitialized produces wrong error message for characters
       [not found] <bug-13615-6709@http.gcc.gnu.org/bugzilla/>
  2006-01-09  4:29 ` [Bug fortran/13615] g77 -Wuninitialized doesn't produce warning on characters pinskia at gcc dot gnu dot org
  2006-06-01  8:17 ` paul dot richard dot thomas at cea dot fr
@ 2006-09-25 12:31 ` fxcoudert at gcc dot gnu dot org
  2007-11-21 18:59 ` fxcoudert at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2006-09-25 12:31 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org
           Severity|enhancement                 |minor
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|i686-pc-linux-gnu           |
   Last reconfirmed|2005-12-30 18:42:58         |2006-09-25 12:31:32
               date|                            |
            Summary|gfortran -Wuninitialized    |-Wuninitialized produces
                   |doesn't produce warning on  |wrong error message for
                   |characters                  |characters
            Version|3.3.2                       |4.2.0


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


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

* [Bug fortran/13615] -Wuninitialized produces wrong error message for characters
       [not found] <bug-13615-6709@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-09-25 12:31 ` [Bug fortran/13615] -Wuninitialized produces wrong error message for characters fxcoudert at gcc dot gnu dot org
@ 2007-11-21 18:59 ` fxcoudert at gcc dot gnu dot org
  2008-08-18 16:55 ` manu at gcc dot gnu dot org
  2009-04-10 21:53 ` dfranke at gcc dot gnu dot org
  5 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-11-21 18:59 UTC (permalink / raw)
  To: gcc-bugs

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



------- Comment #8 from fxcoudert at gcc dot gnu dot org  2007-11-21 18:58 -------
$ cat z.f
      subroutine warn_character(d)
      character c, d
      d = c
      end
$ gfortran -O2 -Wall z.f -c
z.f: In function ‘warn_character’:
z.f:3: warning: ‘c[1]{lb: 1 sz: 1}’ is used uninitialized in this function


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2007-09-29 08:14:43         |2007-11-21 18:58:59
               date|                            |


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


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

* [Bug fortran/13615] -Wuninitialized produces wrong error message for characters
       [not found] <bug-13615-6709@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2007-11-21 18:59 ` fxcoudert at gcc dot gnu dot org
@ 2008-08-18 16:55 ` manu at gcc dot gnu dot org
  2009-04-10 21:53 ` dfranke at gcc dot gnu dot org
  5 siblings, 0 replies; 9+ messages in thread
From: manu at gcc dot gnu dot org @ 2008-08-18 16:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from manu at gcc dot gnu dot org  2008-08-18 16:53 -------
To assess whether this is a middle-end issue, the alias dump (with VOPS and
linenumbers) would be relevant.


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |24639
              nThis|                            |


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


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

* [Bug fortran/13615] -Wuninitialized produces wrong error message for characters
       [not found] <bug-13615-6709@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2008-08-18 16:55 ` manu at gcc dot gnu dot org
@ 2009-04-10 21:53 ` dfranke at gcc dot gnu dot org
  5 siblings, 0 replies; 9+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-04-10 21:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from dfranke at gcc dot gnu dot org  2009-04-10 21:53 -------
> To assess whether this is a middle-end issue, the alias dump (with VOPS 
> and linenumbers) would be relevant.

The testcase in #8 still gives the same warning.
Manuel, you refer to the output of -fdump-tree-alias or another one?


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org


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


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

* [Bug fortran/13615] g77 -Wuninitialized doesn't produce warning on characters
  2004-01-08 15:41 [Bug fortran/13615] New: g77 -Wuninitialized doesn't produce warning on characters smelkov at mph1 dot phys dot spbu dot ru
  2004-01-08 15:42 ` [Bug fortran/13615] " smelkov at mph1 dot phys dot spbu dot ru
  2004-01-08 18:26 ` pinskia at gcc dot gnu dot org
@ 2004-01-25 18:04 ` dhazeghi at yahoo dot com
  2 siblings, 0 replies; 9+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-25 18:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dhazeghi at yahoo dot com  2004-01-25 18:04 -------
gfortran gives...

bash-2.05b$ dara/gcc-3.5-tree-ssa/bin/gfortran -Wuninitialized foo.f 
f951: warning: -Wuninitialized is not supported without -O
foo.f: In function `warn_character':
foo.f:23: fatal error: gfc_todo: Not Implemented: CHARACTER inside COMMON block or 
EQUIVALENCE list
compilation terminated.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-01-08 18:26:33         |2004-01-25 18:04:22
               date|                            |


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


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

* [Bug fortran/13615] g77 -Wuninitialized doesn't produce warning on characters
  2004-01-08 15:41 [Bug fortran/13615] New: g77 -Wuninitialized doesn't produce warning on characters smelkov at mph1 dot phys dot spbu dot ru
  2004-01-08 15:42 ` [Bug fortran/13615] " smelkov at mph1 dot phys dot spbu dot ru
@ 2004-01-08 18:26 ` pinskia at gcc dot gnu dot org
  2004-01-25 18:04 ` dhazeghi at yahoo dot com
  2 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-08 18:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-08 18:26 -------
I can reproduce this on 3.4, I have not tried gfortran on the tree-ssa yet.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-08 18:26:33
               date|                            |


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


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

* [Bug fortran/13615] g77 -Wuninitialized doesn't produce warning on characters
  2004-01-08 15:41 [Bug fortran/13615] New: g77 -Wuninitialized doesn't produce warning on characters smelkov at mph1 dot phys dot spbu dot ru
@ 2004-01-08 15:42 ` smelkov at mph1 dot phys dot spbu dot ru
  2004-01-08 18:26 ` pinskia at gcc dot gnu dot org
  2004-01-25 18:04 ` dhazeghi at yahoo dot com
  2 siblings, 0 replies; 9+ messages in thread
From: smelkov at mph1 dot phys dot spbu dot ru @ 2004-01-08 15:42 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic


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


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

end of thread, other threads:[~2009-04-10 21:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-13615-6709@http.gcc.gnu.org/bugzilla/>
2006-01-09  4:29 ` [Bug fortran/13615] g77 -Wuninitialized doesn't produce warning on characters pinskia at gcc dot gnu dot org
2006-06-01  8:17 ` paul dot richard dot thomas at cea dot fr
2006-09-25 12:31 ` [Bug fortran/13615] -Wuninitialized produces wrong error message for characters fxcoudert at gcc dot gnu dot org
2007-11-21 18:59 ` fxcoudert at gcc dot gnu dot org
2008-08-18 16:55 ` manu at gcc dot gnu dot org
2009-04-10 21:53 ` dfranke at gcc dot gnu dot org
2004-01-08 15:41 [Bug fortran/13615] New: g77 -Wuninitialized doesn't produce warning on characters smelkov at mph1 dot phys dot spbu dot ru
2004-01-08 15:42 ` [Bug fortran/13615] " smelkov at mph1 dot phys dot spbu dot ru
2004-01-08 18:26 ` pinskia at gcc dot gnu dot org
2004-01-25 18:04 ` dhazeghi at yahoo 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).