public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36540] New: libgfortran compile warnings
@ 2008-06-14 20:38 burnus at gcc dot gnu dot org
2008-06-15 8:05 ` [Bug fortran/36540] " burnus at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-06-14 20:38 UTC (permalink / raw)
To: gcc-bugs
As reported by Andreas Tobler for sparc-solaris8:
cc1: warnings being treated as errors
/export/data/devel-test/gcc-svn/gcc/libgfortran/io/read.c: In function
'read_f':
/export/data/devel-test/gcc-svn/gcc/libgfortran/io/read.c:666: error:
array subscript has type 'char'
/export/data/devel-test/gcc-svn/gcc/libgfortran/io/read.c:793: error:
array subscript has type 'char'
/export/data/devel-test/gcc-svn/gcc/libgfortran/io/read.c:802: error:
array subscript has type 'char'
/export/data/devel-test/gcc-svn/gcc/libgfortran/io/read.c:833: error:
array subscript has type 'char'
POSIX defines:
#include <ctype.h>
int isdigit(int c);
--
Summary: libgfortran compile warnings
Product: gcc
Version: 4.4.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=36540
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36540] libgfortran compile warnings
2008-06-14 20:38 [Bug fortran/36540] New: libgfortran compile warnings burnus at gcc dot gnu dot org
@ 2008-06-15 8:05 ` burnus at gcc dot gnu dot org
2008-06-15 9:04 ` schwab at suse dot de
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-06-15 8:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2008-06-15 08:04 -------
doing isdigit ((int) *p) works; however, I'm not sure this is the right
method - and I wonder why there is this warning only on sparc-solaris8 and not
on other systems - "isdigit" takes on all systems an integer. Additionally the
"array subscript" in the error message is really strange.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36540
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36540] libgfortran compile warnings
2008-06-14 20:38 [Bug fortran/36540] New: libgfortran compile warnings burnus at gcc dot gnu dot org
2008-06-15 8:05 ` [Bug fortran/36540] " burnus at gcc dot gnu dot org
@ 2008-06-15 9:04 ` schwab at suse dot de
2008-06-15 9:18 ` burnus at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: schwab at suse dot de @ 2008-06-15 9:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from schwab at suse dot de 2008-06-15 09:04 -------
You should use isdigit ((unsigned char) *p). The argument of all ctype
functions must be in the range of unsigned char or EOF.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36540
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36540] libgfortran compile warnings
2008-06-14 20:38 [Bug fortran/36540] New: libgfortran compile warnings burnus at gcc dot gnu dot org
2008-06-15 8:05 ` [Bug fortran/36540] " burnus at gcc dot gnu dot org
2008-06-15 9:04 ` schwab at suse dot de
@ 2008-06-15 9:18 ` burnus at gcc dot gnu dot org
2008-06-15 17:42 ` jvdelisle at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-06-15 9:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from burnus at gcc dot gnu dot org 2008-06-15 09:17 -------
Jerry, since you are working on I/O patches currently, can you include a fix
for this problem?
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36540
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36540] libgfortran compile warnings
2008-06-14 20:38 [Bug fortran/36540] New: libgfortran compile warnings burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-06-15 9:18 ` burnus at gcc dot gnu dot org
@ 2008-06-15 17:42 ` jvdelisle at gcc dot gnu dot org
2008-06-20 3:54 ` jvdelisle at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-06-15 17:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-06-15 17:41 -------
I will see what I can do.
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-06-15 17:41:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36540
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36540] libgfortran compile warnings
2008-06-14 20:38 [Bug fortran/36540] New: libgfortran compile warnings burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-06-15 17:42 ` jvdelisle at gcc dot gnu dot org
@ 2008-06-20 3:54 ` jvdelisle at gcc dot gnu dot org
2008-09-06 3:14 ` jvdelisle at gcc dot gnu dot org
2010-09-20 22:18 ` [Bug libfortran/36540] " ebotcazou at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-06-20 3:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2008-06-20 03:53 -------
None of the proposed type casts fix this problem. Requires some configury
repair work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36540
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36540] libgfortran compile warnings
2008-06-14 20:38 [Bug fortran/36540] New: libgfortran compile warnings burnus at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-06-20 3:54 ` jvdelisle at gcc dot gnu dot org
@ 2008-09-06 3:14 ` jvdelisle at gcc dot gnu dot org
2010-09-20 22:18 ` [Bug libfortran/36540] " ebotcazou at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-09-06 3:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jvdelisle at gcc dot gnu dot org 2008-09-06 03:13 -------
Un-assigning myself for the reason stated in comment #5
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|jvdelisle at gcc dot gnu dot|unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36540
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libfortran/36540] libgfortran compile warnings
2008-06-14 20:38 [Bug fortran/36540] New: libgfortran compile warnings burnus at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-09-06 3:14 ` jvdelisle at gcc dot gnu dot org
@ 2010-09-20 22:18 ` ebotcazou at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2010-09-20 22:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from ebotcazou at gcc dot gnu dot org 2010-09-20 22:18 -------
Fortran works fine.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36540
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-09-20 22:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-14 20:38 [Bug fortran/36540] New: libgfortran compile warnings burnus at gcc dot gnu dot org
2008-06-15 8:05 ` [Bug fortran/36540] " burnus at gcc dot gnu dot org
2008-06-15 9:04 ` schwab at suse dot de
2008-06-15 9:18 ` burnus at gcc dot gnu dot org
2008-06-15 17:42 ` jvdelisle at gcc dot gnu dot org
2008-06-20 3:54 ` jvdelisle at gcc dot gnu dot org
2008-09-06 3:14 ` jvdelisle at gcc dot gnu dot org
2010-09-20 22:18 ` [Bug libfortran/36540] " ebotcazou 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).