public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/12632] New: -fbounds-check ICE
@ 2003-10-16 5:22 gcc-bugzilla at gcc dot gnu dot org
2003-10-18 17:06 ` [Bug fortran/12632] [3.3/3.4 Regression] [g77 only] " pinskia at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-10-16 5:22 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
Summary: -fbounds-check ICE
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: susukita at atlas dot riken dot go dot jp
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i586-pc-linux-gnu
GCC host triplet: i586-pc-linux-gnu
GCC target triplet: i586-pc-linux-gnu
The following test.f makes an ICE.
INTEGER I(1)
I(2) = 0
END
Environment:
System: Linux 2.2.19
Architecture: i586
host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: ./configure --enable-languages=f77
How-To-Repeat:
g77 -fbounds-check test.f
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
@ 2003-10-18 17:06 ` pinskia at gcc dot gnu dot org
2003-12-21 0:58 ` [Bug fortran/12632] [g77 3.3/3.4 " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-18 17:06 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-18 16:56:21
date| |
Summary|-fbounds-check ICE |[3.3/3.4 Regression] [g77
| |only] -fbounds-check ICE
Target Milestone|--- |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-18 16:56 -------
I can confirm this on the mainline (20031017). It does not happen with 3.2.3 so it is a
regression but I do not know if anyone will fix this one though as this is fixed in the tree-
ssa with f95 which is the future.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [g77 3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
2003-10-18 17:06 ` [Bug fortran/12632] [3.3/3.4 Regression] [g77 only] " pinskia at gcc dot gnu dot org
@ 2003-12-21 0:58 ` pinskia at gcc dot gnu dot org
2003-12-21 1:02 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-21 0:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-20 23:03 -------
Caused by this patch: <http://gcc.gnu.org/ml/gcc-patches/2002-10/msg00873.html>.
Roger could you look into this.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |sayle at gcc dot gnu dot org
Severity|normal |critical
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [g77 3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
2003-10-18 17:06 ` [Bug fortran/12632] [3.3/3.4 Regression] [g77 only] " pinskia at gcc dot gnu dot org
2003-12-21 0:58 ` [Bug fortran/12632] [g77 3.3/3.4 " pinskia at gcc dot gnu dot org
@ 2003-12-21 1:02 ` pinskia at gcc dot gnu dot org
2003-12-21 9:54 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-21 1:02 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |sayle at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [g77 3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-12-21 1:02 ` pinskia at gcc dot gnu dot org
@ 2003-12-21 9:54 ` pinskia at gcc dot gnu dot org
2003-12-21 9:55 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-21 9:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-21 09:04 -------
I have a fix but it looks wrong after reading why this was changed in the first place.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [g77 3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-12-21 9:54 ` pinskia at gcc dot gnu dot org
@ 2003-12-21 9:55 ` pinskia at gcc dot gnu dot org
2003-12-26 16:14 ` roger at eyesopen dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-21 9:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-21 09:05 -------
In fact the fix does not help for optimizations either so it ICE at -O.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [g77 3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-12-21 9:55 ` pinskia at gcc dot gnu dot org
@ 2003-12-26 16:14 ` roger at eyesopen dot com
2003-12-29 16:34 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: roger at eyesopen dot com @ 2003-12-26 16:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From roger at eyesopen dot com 2003-12-26 14:23 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2003-12/msg01878.html>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [g77 3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2003-12-26 16:14 ` roger at eyesopen dot com
@ 2003-12-29 16:34 ` cvs-commit at gcc dot gnu dot org
2003-12-29 17:07 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-29 16:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-29 16:16 -------
Subject: Bug 12632
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: sayle@gcc.gnu.org 2003-12-29 16:16:39
Modified files:
gcc : ChangeLog fold-const.c
gcc/f : ChangeLog com.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g77.dg: 12632.f
Log message:
PR fortran/12632
* fold-const.c (fold) <COND_EXPR>: Don't fold a constant condition,
if the type of the selected branch doesn't match its' parent.
* com.c (ffecom_subscript_check_): Take as an extra argument the
(possibly NULL) decl of the array. Don't create unnecessary tree
nodes if the array index is known to be safe at compile-time.
If the array index is unsafe, force the array decl into memory to
avoid RTL expansion problems.
(ffecom_array_ref_): Update calls to ffecom_subscript_check_.
(ffecom_char_args_x_): Likewise.
* g77.dg/12632.f: New test case.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2108&r2=2.2109
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.318&r2=1.319
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/ChangeLog.diff?cvsroot=gcc&r1=1.617&r2=1.618
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/com.c.diff?cvsroot=gcc&r1=1.220&r2=1.221
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3318&r2=1.3319
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g77.dg/12632.f.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [g77 3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2003-12-29 16:34 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-29 17:07 ` pinskia at gcc dot gnu dot org
2004-01-01 4:45 ` cvs-commit at gcc dot gnu dot org
2004-01-01 5:10 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-29 17:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-29 16:59 -------
Fixed for 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [g77 3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
` (7 preceding siblings ...)
2003-12-29 17:07 ` pinskia at gcc dot gnu dot org
@ 2004-01-01 4:45 ` cvs-commit at gcc dot gnu dot org
2004-01-01 5:10 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-01 4:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-01-01 04:45 -------
Subject: Bug 12632
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: sayle@gcc.gnu.org 2004-01-01 04:44:59
Modified files:
gcc : ChangeLog tree.c tree.h fold-const.c
gcc/f : ChangeLog com.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g77.dg: 12632.f
Log message:
PR fortran/12632
* tree.c (integer_nonzerop): New predicate for nonzero integers.
* tree.h (integer_nonzerop): Add function prototype.
* fold-const.c (fold) <COND_EXPR>: Don't fold a constant condition,
if we'd replace a COND_EXPR of non-void type by one of its operands
of void type.
* com.c (ffecom_subscript_check_): Take as an extra argument the
(possibly NULL) decl of the array. Don't create unnecessary tree
nodes if the array index is known to be safe at compile-time.
If the array index is unsafe, force the array decl into memory to
avoid RTL expansion problems.
(ffecom_array_ref_): Update calls to ffecom_subscript_check_.
(ffecom_char_args_x_): Likewise.
* g77.dg/12632.f: New test case.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.864&r2=1.16114.2.865
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.282.2.3&r2=1.282.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.367.2.7&r2=1.367.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.227.2.4&r2=1.227.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.503.2.34&r2=1.503.2.35
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/f/com.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.182.4.5&r2=1.182.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.348&r2=1.2261.2.349
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g77.dg/12632.f.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/12632] [g77 3.3/3.4 Regression] [g77 only] -fbounds-check ICE
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-01-01 4:45 ` cvs-commit at gcc dot gnu dot org
@ 2004-01-01 5:10 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-01 5:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-01 05:10 -------
Fixed also for 3.3.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.0 |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12632
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-01-01 5:10 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-16 5:22 [Bug fortran/12632] New: -fbounds-check ICE gcc-bugzilla at gcc dot gnu dot org
2003-10-18 17:06 ` [Bug fortran/12632] [3.3/3.4 Regression] [g77 only] " pinskia at gcc dot gnu dot org
2003-12-21 0:58 ` [Bug fortran/12632] [g77 3.3/3.4 " pinskia at gcc dot gnu dot org
2003-12-21 1:02 ` pinskia at gcc dot gnu dot org
2003-12-21 9:54 ` pinskia at gcc dot gnu dot org
2003-12-21 9:55 ` pinskia at gcc dot gnu dot org
2003-12-26 16:14 ` roger at eyesopen dot com
2003-12-29 16:34 ` cvs-commit at gcc dot gnu dot org
2003-12-29 17:07 ` pinskia at gcc dot gnu dot org
2004-01-01 4:45 ` cvs-commit at gcc dot gnu dot org
2004-01-01 5:10 ` 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).