public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
` (6 more replies)
0 siblings, 7 replies; 8+ 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] 8+ 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
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ 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] 8+ 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
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ 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] 8+ 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
2004-04-26 7:42 ` [Bug fortran/13615] [gfortran] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ 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] 8+ messages in thread
* [Bug fortran/13615] [gfortran] 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
` (2 preceding siblings ...)
2004-01-25 18:04 ` dhazeghi at yahoo dot com
@ 2004-04-26 7:42 ` pinskia at gcc dot gnu dot org
2004-05-17 2:43 ` tobi at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-26 7:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-26 04:24 -------
The reason why it does not complain is that STRING(N:N) is not folded to be just an
access.
;; Function warn_character (warn_character__)
warn_character ()
{
int1 c[1];
<bb 0>:
_gfortran_copy_string (1, &yyy.d, 1, &c);
return;
}
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |12456
Severity|normal |enhancement
Last reconfirmed|2004-01-25 18:04:22 |2004-04-26 04:24:56
date| |
Summary|g77 -Wuninitialized doesn't |[gfortran] g77 -
|produce warning on |Wuninitialized doesn't
|characters |produce warning on
| |characters
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13615
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13615] [gfortran] 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
` (3 preceding siblings ...)
2004-04-26 7:42 ` [Bug fortran/13615] [gfortran] " pinskia at gcc dot gnu dot org
@ 2004-05-17 2:43 ` tobi at gcc dot gnu dot org
2004-05-19 10:13 ` pinskia at gcc dot gnu dot org
2004-05-24 15:40 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-05-17 2:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-05-16 19:03 -------
To make this clear: the ICE in gfortran is gone. It still doesn't give the
diagnostic, though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13615
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13615] [gfortran] 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
` (4 preceding siblings ...)
2004-05-17 2:43 ` tobi at gcc dot gnu dot org
@ 2004-05-19 10:13 ` pinskia at gcc dot gnu dot org
2004-05-24 15:40 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-19 10:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-18 18:29 -------
After a fix (which is semi-broken) for PR 12456, the problem now is that characters in common blocks
are stored as arrays.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13615
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13615] [gfortran] 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
` (5 preceding siblings ...)
2004-05-19 10:13 ` pinskia at gcc dot gnu dot org
@ 2004-05-24 15:40 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 15:40 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13615
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-05-24 1:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2004-04-26 7:42 ` [Bug fortran/13615] [gfortran] " pinskia at gcc dot gnu dot org
2004-05-17 2:43 ` tobi at gcc dot gnu dot org
2004-05-19 10:13 ` pinskia at gcc dot gnu dot org
2004-05-24 15:40 ` pinskia at gcc dot gnu dot org
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).