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] New: g77 -Wuninitialized doesn't produce warning on characters
@ 2004-01-08 15:41 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
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: smelkov at mph1 dot phys dot spbu dot ru @ 2004-01-08 15:41 UTC (permalink / raw)
To: gcc-bugs
g77 should warn that 'c' might be used uninitialized, while the same code templated
with character changed to integer or 'double precision' generates the warning.
----test_uninitialized.f-------------------------
c g77 -Wuninitialized -c -O test_uninitialized.f
c test_uninitialized.f: In subroutine `warn_integer':
c test_uninitialized.f:15: warning: `a' might be used uninitialized in this function
c
c *** THERE IS NO ***
c test_uninitialized.f:29: warning: `c' might be used uninitialized ...
c says that a might be used uninitialized
subroutine warn_integer
implicit none
integer b
common /xxx/ b
integer a
b = a
end
c should say that a might be used uninitialized,
c but doesn't!
subroutine warn_character
implicit none
character d
common /yyy/ d
character c
d = c
end
-----------------
[kirr@roro Si2O7H6.molcas]$ g77 -v
Reading specs from /mnt/tmini/kirr/local/gcc-3.3.2/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --prefix=/mnt/tmini/kirr/local/gcc-3.3.2 --with-gnu-as
--with-gnu-ld --enable-threads=posix --enable-languages=c,c++,f77 --enable-checking
--disable-nls
Thread model: posix
gcc version 3.3.2
--
Summary: g77 -Wuninitialized doesn't produce warning on
characters
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: smelkov at mph1 dot phys dot spbu dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
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).