public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/19239] New: gfortran ICE on vector subscript expressions
@ 2005-01-03 13:12 panuzzo at pd dot astro dot it
2005-01-03 15:34 ` [Bug fortran/19239] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: panuzzo at pd dot astro dot it @ 2005-01-03 13:12 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 774 bytes --]
Hi,
this valid program:
program dummy
integer,dimension(2) :: index=(/1,1/)
real,dimension(2) :: A=1.0
print*,A(index+1)
end program dummy
gives:
dummy.f90: In function MAIN__:
dummy.f90:6: fatal error: gfc_todo: Not Implemented: vector subscript expressions
compilation terminated.
with gcc version 4.0.0 20050102
--
Summary: gfortran ICE on vector subscript expressions
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: panuzzo at pd dot astro dot it
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/19239] gfortran ICE on vector subscript expressions
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
@ 2005-01-03 15:34 ` pinskia at gcc dot gnu dot org
2005-06-09 9:06 ` c dot lemmen at fz-juelich dot de
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-03 15:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-03 15:34 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2005-01-03 15:34:22
date| |
Version|tree-ssa |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/19239] gfortran ICE on vector subscript expressions
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
2005-01-03 15:34 ` [Bug fortran/19239] " pinskia at gcc dot gnu dot org
@ 2005-06-09 9:06 ` c dot lemmen at fz-juelich dot de
2005-09-05 8:10 ` rsandifo at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: c dot lemmen at fz-juelich dot de @ 2005-06-09 9:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From c dot lemmen at fz-juelich dot de 2005-06-09 09:06 -------
This TODO item prevents successful compilation of the following Numerical Recipes:
anneal.f90
dftint.f90:39
factln.f90:39
factrl.f90:40
four1_gather.f90:20
fourn_gather.f90:25
pwt.f90:17
savgol.f90:29
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/19239] gfortran ICE on vector subscript expressions
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
2005-01-03 15:34 ` [Bug fortran/19239] " pinskia at gcc dot gnu dot org
2005-06-09 9:06 ` c dot lemmen at fz-juelich dot de
@ 2005-09-05 8:10 ` rsandifo at gcc dot gnu dot org
2005-09-09 6:34 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-05 8:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rsandifo at gcc dot gnu dot org 2005-09-05 08:09 -------
Working on a patch.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rsandifo at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-04-04 04:46:55 |2005-09-05 08:09:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/19239] gfortran ICE on vector subscript expressions
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
` (2 preceding siblings ...)
2005-09-05 8:10 ` rsandifo at gcc dot gnu dot org
@ 2005-09-09 6:34 ` cvs-commit at gcc dot gnu dot org
2005-09-09 6:37 ` rsandifo at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-09 6:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-09 06:34 -------
Subject: Bug 19239
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rsandifo@gcc.gnu.org 2005-09-09 06:34:08
Modified files:
gcc/fortran : ChangeLog Make-lang.in dependency.h
dependency.c trans.h trans-array.c trans-expr.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: vector_subscript_1.f90
vector_subscript_2.f90
Log message:
PR fortran/19239
* Makefile.in (fortran/trans-expr.o): Depend on dependency.h.
* dependency.h (gfc_ref_needs_temporary_p): Declare.
* dependency.c (gfc_ref_needs_temporary_p): New function.
(gfc_check_fncall_dependency): Use it instead of inlined check.
By so doing, take advantage of the fact that character substrings
within an array reference also need a temporary.
* trans.h (GFC_SS_VECTOR): Adjust comment.
* trans-array.c (gfc_free_ss): Remove GFC_SS_VECTOR case.
(gfc_set_vector_loop_bounds): New function.
(gfc_add_loop_ss_code): Call it after evaluating the subscripts of
a GFC_SS_SECTION. Deal with the GFC_SS_VECTOR case by evaluating
the vector expression and caching its descriptor for use within
the loop.
(gfc_conv_array_index_ref, gfc_conv_vector_array_index): Delete.
(gfc_conv_array_index_offset): Handle scalar, vector and range
dimensions as separate cases of a switch statement. In the vector
case, use the loop variable to calculate a vector index and use the
referenced element as the dimension's index. Perform bounds checking
on this final index.
(gfc_conv_section_upper_bound): Return null for vector indexes.
(gfc_conv_section_startstride): Give vector indexes a start value
of 0 and a stride of 1.
(gfc_conv_ss_startstride): Adjust for new GFC_SS_VECTOR representation.
(gfc_conv_expr_descriptor): Expand comments. Generalize the
handling of the !want_pointer && !direct_byref case. Use
gfc_ref_needs_temporary_p to decide whether the variable case
needs a temporary.
(gfc_walk_variable_expr): Handle DIMEN_VECTOR by creating a
GFC_SS_VECTOR index.
* trans-expr.c: Include dependency.h.
(gfc_trans_arrayfunc_assign): Fail if the target needs a temporary.
2005-09-09 Richard Sandiford <richard@codesourcery.com>
PR fortran/21104
* trans.h (gfc_interface_sym_mapping, gfc_interface_mapping): Moved
from trans-expr.c.
(gfc_init_interface_mapping, gfc_free_interface_mapping)
(gfc_add_interface_mapping, gfc_finish_interface_mapping)
(gfc_apply_interface_mapping): Declare.
* trans-array.h (gfc_set_loop_bounds_from_array_spec): Declare.
(gfc_trans_allocate_temp_array): Add pre and post block arguments.
* trans-array.c (gfc_set_loop_bounds_from_array_spec): New function.
(gfc_trans_allocate_array_storage): Replace loop argument with
separate pre and post blocks.
(gfc_trans_allocate_temp_array): Add pre and post block arguments.
Update call to gfc_trans_allocate_array_storage.
(gfc_trans_array_constructor, gfc_conv_loop_setup): Adjust for new
interface to gfc_trans_allocate_temp_array.
* trans-expr.c (gfc_interface_sym_mapping, gfc_interface_mapping):
Moved to trans.h.
(gfc_init_interface_mapping, gfc_free_interface_mapping)
(gfc_add_interface_mapping, gfc_finish_interface_mapping)
(gfc_apply_interface_mapping): Make extern.
(gfc_conv_function_call): Build an interface mapping for array
return values too. Call gfc_set_loop_bounds_from_array_spec.
Adjust call to gfc_trans_allocate_temp_array so that code is
added to SE rather than LOOP.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.546&r2=1.547
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/Make-lang.in.diff?cvsroot=gcc&r1=1.20&r2=1.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/dependency.h.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/dependency.c.diff?cvsroot=gcc&r1=1.8&r2=1.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans.h.diff?cvsroot=gcc&r1=1.34&r2=1.35
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.59&r2=1.60
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-expr.c.diff?cvsroot=gcc&r1=1.62&r2=1.63
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6037&r2=1.6038
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/vector_subscript_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/vector_subscript_2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/19239] gfortran ICE on vector subscript expressions
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
` (4 preceding siblings ...)
2005-09-09 6:37 ` rsandifo at gcc dot gnu dot org
@ 2005-09-09 6:37 ` rsandifo at gcc dot gnu dot org
2005-09-18 20:06 ` tkoenig at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-09 6:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rsandifo at gcc dot gnu dot org 2005-09-09 06:37 -------
Patch applied to mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/19239] gfortran ICE on vector subscript expressions
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
` (3 preceding siblings ...)
2005-09-09 6:34 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-09 6:37 ` rsandifo at gcc dot gnu dot org
2005-09-09 6:37 ` rsandifo at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-09 6:37 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/19239] gfortran ICE on vector subscript expressions
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
` (5 preceding siblings ...)
2005-09-09 6:37 ` rsandifo at gcc dot gnu dot org
@ 2005-09-18 20:06 ` tkoenig at gcc dot gnu dot org
2005-09-18 20:10 ` [Bug fortran/19239] [4.0 only] " rsandifo at gcc dot gnu dot org
2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-09-18 20:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-09-18 20:06 -------
Not yet fixed for 4.0:
$ cat > pr19239.f90
program dummy
integer,dimension(2) :: index=(/1,1/)
real,dimension(2) :: A=1.0
print*,A(index+1)
end program dummy
$ gfortran pr19239.f90
pr19239.f90: In function 'MAIN__':
pr19239.f90:4: fatal error: gfc_todo: Not Implemented: vector subscript expressions
compilation terminated.
$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0/configure --prefix=/home/ig25
--enable-languages=c,fortran
Thread model: posix
gcc version 4.0.2 20050917 (prerelease)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Known to fail| |4.0.2
Known to work| |4.1.0
Resolution|FIXED |
Target Milestone|4.1.0 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/19239] [4.0 only] gfortran ICE on vector subscript expressions
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
` (6 preceding siblings ...)
2005-09-18 20:06 ` tkoenig at gcc dot gnu dot org
@ 2005-09-18 20:10 ` rsandifo at gcc dot gnu dot org
2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-09-18 20:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|rsandifo at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|REOPENED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/19239] [4.0 only] gfortran ICE on vector subscript expressions
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
` (7 preceding siblings ...)
2005-09-18 20:10 ` [Bug fortran/19239] [4.0 only] " rsandifo at gcc dot gnu dot org
@ 2005-09-18 20:27 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 20:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-18 20:26 -------
All of these are fixed in 4.1.0. Since 4.0.2 is the last 4.0 release before a 4.1.0 release will be made,
4.0.2 and 4.0.1 were special releases for gfrotran. 4.0.3 should be a normal release for GCC and
gfortran in that regressions are the only changes.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.3 |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19239
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-09-18 20:27 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-03 13:12 [Bug fortran/19239] New: gfortran ICE on vector subscript expressions panuzzo at pd dot astro dot it
2005-01-03 15:34 ` [Bug fortran/19239] " pinskia at gcc dot gnu dot org
2005-06-09 9:06 ` c dot lemmen at fz-juelich dot de
2005-09-05 8:10 ` rsandifo at gcc dot gnu dot org
2005-09-09 6:34 ` cvs-commit at gcc dot gnu dot org
2005-09-09 6:37 ` rsandifo at gcc dot gnu dot org
2005-09-09 6:37 ` rsandifo at gcc dot gnu dot org
2005-09-18 20:06 ` tkoenig at gcc dot gnu dot org
2005-09-18 20:10 ` [Bug fortran/19239] [4.0 only] " rsandifo at gcc dot gnu dot org
2005-09-18 20:27 ` 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).