public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994
@ 2014-03-10 23:34 antony at cosmologist dot info
2014-03-11 5:52 ` [Bug fortran/60495] [4.9 Regression] " dominiq at lps dot ens.fr
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: antony at cosmologist dot info @ 2014-03-10 23:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
Bug ID: 60495
Summary: ICE: in fold_convert_loc, at fold-const.c:1994
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: antony at cosmologist dot info
module A
implicit none
Type T
contains
final :: testfree
end type
Type, extends(T) :: T2
real, allocatable :: Y(:)
class(T), allocatable :: XX
contains
end type
contains
subroutine testfree(this)
Type(T) this
end subroutine
subroutine Testf()
Type(T2) A, B
B=A
end subroutine
end module
TestClass.f90: In function ‘testf’:
TestClass.f90:26:0: internal compiler error: in fold_convert_loc, at
fold-const.c:1994
B=A
^
0x83f3a5a fold_convert_loc(unsigned int, tree_node*, tree_node*)
../../gcc-trunk/gcc/fold-const.c:1993
0x8205f01 gfc_conv_descriptor_data_set(stmtblock_t*, tree_node*, tree_node*)
../../gcc-trunk/gcc/fortran/trans-array.c:178
0x822c5d2 gfc_conv_scalar_to_descriptor(gfc_se*, tree_node*, symbol_attribute)
../../gcc-trunk/gcc/fortran/trans-expr.c:74
0x820254d gfc_add_comp_finalizer_call(stmtblock_t*, tree_node*, gfc_component*,
bool)
../../gcc-trunk/gcc/fortran/trans.c:1012
0x820f7d5 structure_alloc_comps
../../gcc-trunk/gcc/fortran/trans-array.c:7622
0x822fd85 gfc_trans_scalar_assign(gfc_se*, gfc_se*, gfc_typespec, bool, bool,
bool)
../../gcc-trunk/gcc/fortran/trans-expr.c:6955
0x823acd0 gfc_trans_assignment_1
../../gcc-trunk/gcc/fortran/trans-expr.c:7999
0x823e0d5 gfc_trans_assign(gfc_code*)
../../gcc-trunk/gcc/fortran/trans-expr.c:8170
0x8201ffd trans_code
../../gcc-trunk/gcc/fortran/trans.c:1623
0x8229920 gfc_generate_function_code(gfc_namespace*)
../../gcc-trunk/gcc/fortran/trans-decl.c:5610
0x82036f2 gfc_generate_module_code(gfc_namespace*)
../../gcc-trunk/gcc/fortran/trans.c:1956
0x81c0df6 translate_all_program_units
../../gcc-trunk/gcc/fortran/parse.c:4523
0x81c0df6 gfc_parse_file()
../../gcc-trunk/gcc/fortran/parse.c:4733
0x81fd035 gfc_be_parse_file
../../gcc-trunk/gcc/fortran/f95-lang.c:188
Please submit a full bug report,
with preprocessed source if appropriate.
>From gcc-bugs-return-445987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Mar 11 00:43:11 2014
Return-Path: <gcc-bugs-return-445987-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27387 invoked by alias); 11 Mar 2014 00:43:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 27314 invoked by uid 48); 11 Mar 2014 00:43:05 -0000
From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libfortran/38199] [4.7/4.8/4.9 Regression] missed optimization: I/O performance
Date: Tue, 11 Mar 2014 00:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libfortran
X-Bugzilla-Version: 4.4.0
X-Bugzilla-Keywords: missed-optimization
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jvdelisle at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P4
X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.7.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-38199-4-oQOoOg8Ybb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-38199-4@http.gcc.gnu.org/bugzilla/>
References: <bug-38199-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg00856.txt.bz2
Content-length: 480
http://gcc.gnu.org/bugzilla/show_bug.cgi?id8199
--- Comment #37 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Here on NIST I do not get any failures. FM908 passes FM905 and FM907 require
inspection to confirm and they look good. I only need to adjust the reference
output file that is used by the script to do the inspection for me.
Dominiq, can you try FM908 with something like Valgrind and also try different
optimization levels and see if anything odd pops up.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
@ 2014-03-11 5:52 ` dominiq at lps dot ens.fr
2014-03-11 7:50 ` janus at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-03-11 5:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-03-11
CC| |burnus at gcc dot gnu.org,
| |janus at gcc dot gnu.org
Summary|ICE: in fold_convert_loc, |[4.9 Regression] ICE: in
|at fold-const.c:1994 |fold_convert_loc, at
| |fold-const.c:1994
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
The code compiles with r200946 (2013-07-14), but gives the ICE with r201631
(2013-08-09). It could be r200954. The backtrace is similar to the one for
pr58880 (duplicate?).
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
2014-03-11 5:52 ` [Bug fortran/60495] [4.9 Regression] " dominiq at lps dot ens.fr
@ 2014-03-11 7:50 ` janus at gcc dot gnu.org
2014-03-11 11:40 ` rguenth at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: janus at gcc dot gnu.org @ 2014-03-11 7:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
--- Comment #2 from janus at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #1)
> It could be r200954. The backtrace is similar to the one for
> pr58880 (duplicate?).
Very likely.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
2014-03-11 5:52 ` [Bug fortran/60495] [4.9 Regression] " dominiq at lps dot ens.fr
2014-03-11 7:50 ` janus at gcc dot gnu.org
@ 2014-03-11 11:40 ` rguenth at gcc dot gnu.org
2014-03-12 13:28 ` jakub at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-03-11 11:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.9.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (2 preceding siblings ...)
2014-03-11 11:40 ` rguenth at gcc dot gnu.org
@ 2014-03-12 13:28 ` jakub at gcc dot gnu.org
2014-03-12 13:30 ` jakub at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-12 13:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Indeed, it started with r200954.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (3 preceding siblings ...)
2014-03-12 13:28 ` jakub at gcc dot gnu.org
@ 2014-03-12 13:30 ` jakub at gcc dot gnu.org
2014-04-01 6:09 ` burnus at gcc dot gnu.org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-03-12 13:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (4 preceding siblings ...)
2014-03-12 13:30 ` jakub at gcc dot gnu.org
@ 2014-04-01 6:09 ` burnus at gcc dot gnu.org
2014-04-01 19:22 ` mikael at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-04-01 6:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Looks similar to PR60495; the patch there (committed) solved the ICE problem
but the following issue remains (with both PRs): undefined reference to
`__final_a_T2.2437'
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (5 preceding siblings ...)
2014-04-01 6:09 ` burnus at gcc dot gnu.org
@ 2014-04-01 19:22 ` mikael at gcc dot gnu.org
2014-04-04 5:33 ` burnus at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mikael at gcc dot gnu.org @ 2014-04-01 19:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
--- Comment #5 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #4)
> Looks similar to PR60495;
Certainly; this _is_ PR60495. :-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (6 preceding siblings ...)
2014-04-01 19:22 ` mikael at gcc dot gnu.org
@ 2014-04-04 5:33 ` burnus at gcc dot gnu.org
2014-04-11 22:36 ` [Bug fortran/60495] [4.9/4.10 " burnus at gcc dot gnu.org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-04-04 5:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Mikael Morin from comment #5)
> (In reply to Tobias Burnus from comment #4)
> > Looks similar to PR60495;
>
> Certainly; this _is_ PR60495. :-)
I meant: PR58880
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9/4.10 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (7 preceding siblings ...)
2014-04-04 5:33 ` burnus at gcc dot gnu.org
@ 2014-04-11 22:36 ` burnus at gcc dot gnu.org
2014-04-11 22:38 ` burnus at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-04-11 22:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: burnus
Date: Fri Apr 11 22:35:47 2014
New Revision: 209327
URL: http://gcc.gnu.org/viewcvs?rev=209327&root=gcc&view=rev
Log:
2014-04-11 Tobias Burnus <burnus@net-b.de>
PR fortran/58880
PR fortran/60495
* resolve.c (gfc_resolve_finalizers): Ensure that vtables
and finalization wrappers are generated.
2014-04-11 Tobias Burnus <burnus@net-b.de>
PR fortran/58880
PR fortran/60495
* gfortran.dg/finalize_25.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/finalize_25.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9/4.10 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (8 preceding siblings ...)
2014-04-11 22:36 ` [Bug fortran/60495] [4.9/4.10 " burnus at gcc dot gnu.org
@ 2014-04-11 22:38 ` burnus at gcc dot gnu.org
2014-04-22 11:38 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-04-11 22:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
--- Comment #8 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Fixed on the 4.10 trunk so far. GCC 4.9(.1) backporting still pending.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9/4.10 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (9 preceding siblings ...)
2014-04-11 22:38 ` burnus at gcc dot gnu.org
@ 2014-04-22 11:38 ` jakub at gcc dot gnu.org
2014-04-22 21:13 ` burnus at gcc dot gnu.org
2014-04-22 21:16 ` burnus at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-04-22 11:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.9.0 |4.9.1
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.0 has been released
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9/4.10 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (10 preceding siblings ...)
2014-04-22 11:38 ` jakub at gcc dot gnu.org
@ 2014-04-22 21:13 ` burnus at gcc dot gnu.org
2014-04-22 21:16 ` burnus at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-04-22 21:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
--- Comment #10 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: burnus
Date: Tue Apr 22 21:12:46 2014
New Revision: 209662
URL: http://gcc.gnu.org/viewcvs?rev=209662&root=gcc&view=rev
Log:
2014-04-22 Tobias Burnus <burnus@net-b.de>
Backport from mainline
2014-04-11 Tobias Burnus <burnus@net-b.de>
PR fortran/58880
PR fortran/60495
* resolve.c (gfc_resolve_finalizers): Ensure that vtables
and finalization wrappers are generated.
2014-04-22 Tobias Burnus <burnus@net-b.de>
Backport from mainline
2014-04-11 Tobias Burnus <burnus@net-b.de>
PR fortran/58880
PR fortran/60495
* gfortran.dg/finalize_25.f90: New.
Added:
branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/finalize_25.f90
Modified:
branches/gcc-4_9-branch/gcc/fortran/ChangeLog
branches/gcc-4_9-branch/gcc/fortran/resolve.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug fortran/60495] [4.9/4.10 Regression] ICE: in fold_convert_loc, at fold-const.c:1994
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
` (11 preceding siblings ...)
2014-04-22 21:13 ` burnus at gcc dot gnu.org
@ 2014-04-22 21:16 ` burnus at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-04-22 21:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60495
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #11 from Tobias Burnus <burnus at gcc dot gnu.org> ---
And now also FIXED on the 4.9 branch (for GCC 4.9.1).
Thanks for the report!
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-04-22 21:16 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-10 23:34 [Bug fortran/60495] New: ICE: in fold_convert_loc, at fold-const.c:1994 antony at cosmologist dot info
2014-03-11 5:52 ` [Bug fortran/60495] [4.9 Regression] " dominiq at lps dot ens.fr
2014-03-11 7:50 ` janus at gcc dot gnu.org
2014-03-11 11:40 ` rguenth at gcc dot gnu.org
2014-03-12 13:28 ` jakub at gcc dot gnu.org
2014-03-12 13:30 ` jakub at gcc dot gnu.org
2014-04-01 6:09 ` burnus at gcc dot gnu.org
2014-04-01 19:22 ` mikael at gcc dot gnu.org
2014-04-04 5:33 ` burnus at gcc dot gnu.org
2014-04-11 22:36 ` [Bug fortran/60495] [4.9/4.10 " burnus at gcc dot gnu.org
2014-04-11 22:38 ` burnus at gcc dot gnu.org
2014-04-22 11:38 ` jakub at gcc dot gnu.org
2014-04-22 21:13 ` burnus at gcc dot gnu.org
2014-04-22 21:16 ` burnus at gcc dot gnu.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).