public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value
@ 2013-09-30 21:57 vladimir.fuka at gmail dot com
2013-10-01 21:13 ` [Bug fortran/58586] [OOP] " burnus at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: vladimir.fuka at gmail dot com @ 2013-09-30 21:57 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 8294 bytes --]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
Bug ID: 58586
Summary: ICE with derived type with a polymorphic allocatable
component passed by value
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: vladimir.fuka at gmail dot com
> gfortran -c ice3.f90
ice3.f90: In function âsubâ:
ice3.f90:29:0: internal compiler error: Segmentation fault
call add(b())
^
0x87dfdf crash_signal
../../gcc-4.8-20130425/gcc/toplev.c:332
0x5b19b0 structure_alloc_comps
../../gcc-4.8-20130425/gcc/fortran/trans-array.c:7440
0x5c97ca gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*,
gfc_expr*, vec<tree_node*, va_gc, vl_embed>*)
../../gcc-4.8-20130425/gcc/fortran/trans-expr.c:4621
0x5ede84 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool)
../../gcc-4.8-20130425/gcc/fortran/trans-stmt.c:406
0x5a7761 trans_code
../../gcc-4.8-20130425/gcc/fortran/trans.c:1500
0x5c4a02 gfc_generate_function_code(gfc_namespace*)
../../gcc-4.8-20130425/gcc/fortran/trans-decl.c:5397
0x568770 translate_all_program_units
../../gcc-4.8-20130425/gcc/fortran/parse.c:4474
0x568770 gfc_parse_file()
../../gcc-4.8-20130425/gcc/fortran/parse.c:4688
0x5a3a85 gfc_be_parse_file
../../gcc-4.8-20130425/gcc/fortran/f95-lang.c:189
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
module mod
type,abstract :: a
end type
type :: b
class(a),allocatable :: a
end type
interface b
module procedure b_init
end interface
contains
subroutine add(c)
type(b),value :: c
end subroutine
function b_init() result(res)
type(b) :: res
end function
end module mod
subroutine sub
use mod
call add(b())
end subroutine sub
>From gcc-bugs-return-430853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 30 22:54:24 2013
Return-Path: <gcc-bugs-return-430853-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26304 invoked by alias); 30 Sep 2013 22:54:23 -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 26261 invoked by uid 48); 30 Sep 2013 22:54:20 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/58587] New: Bootstrap error with ada with -mcpu=power7
Date: Mon, 30 Sep 2013 22:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc
Message-ID: <bug-58587-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-09/txt/msg02093.txt.bz2
Content-length: 2271
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58587
Bug ID: 58587
Summary: Bootstrap error with ada with -mcpu=power7
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
CC: meissner at gcc dot gnu.org
Trying to bootstrap gcc (4.8-RH, but reproduced also with the trunk) with
a ppc64 compiler configured --with-cpu=power7 ICEs during stage1 while par.adb
is being compiled at -O0.
Reproduced even with a cross-compiler from x86_64-linux, will attach a tarball
with all the required files.
../gnat1 -I. -gnatwa -quiet -nostdinc -m64 -gnatpg -gnatwns -mtune=power7
-mcpu=power7 par.adb -o /tmp/par.s
par.adb: In function âParâ:
par.adb:1604:5: error: insn does not satisfy its constraints:
(insn 1505 719 1504 (set (reg:TI 77 0)
(const_double -16 [0xfffffffffffffff0] 7 [0x7] 0 [0] 0 [0]))
par.adb:1509 721 {*vsx_movti_64bit}
(nil))
+===========================GNAT BUG DETECTED==============================+
| 4.9.0 20130927 (experimental) (powerpc64-linux) GCC error: |
| in extract_constrain_insn_cached, at recog.c:2076 |
| Error detected around par.adb:1604:5 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html. |
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box in the report. |
| Include the exact gcc or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
+==========================================================================+
>From gcc-bugs-return-430854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 30 22:57:04 2013
Return-Path: <gcc-bugs-return-430854-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28145 invoked by alias); 30 Sep 2013 22:57:04 -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 28104 invoked by uid 48); 30 Sep 2013 22:57:02 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/58587] Bootstrap error with ada with -mcpu=power7
Date: Mon, 30 Sep 2013 22:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-58587-4-ppChf6V5vq@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58587-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58587-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: 2013-09/txt/msg02094.txt.bz2
Content-length: 528
http://gcc.gnu.org/bugzilla/show_bug.cgi?idX587
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 30941
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id0941&actioníit
pr58587.tar.bz2
I've tried to create a C small reproducer from scratch, but just using TImode
seems to work, reload decides to put the extra large constant into memory, and
similarly say:
typedef int TI __attribute__((mode (TI)));
void
foo (void)
{
asm volatile ("" : : "v" (((TI) 0x7fffffffffffffffUL) << 4));
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/58586] [OOP] ICE with derived type with a polymorphic allocatable component passed by value
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
@ 2013-10-01 21:13 ` burnus at gcc dot gnu.org
2014-01-05 12:34 ` dominiq at lps dot ens.fr
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-10-01 21:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Known to fail| |4.7.3, 4.8.1, 4.9.0
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(The code compiles successfully with crayftn, pgf95 and ifort.)
(In reply to Vladimir Fuka from comment #0)
> 0x5b19b0 structure_alloc_comps
> ../../gcc-4.8-20130425/gcc/fortran/trans-array.c:7440
That's for der_type->name == "b" and debug_tree(decl) gives:
<indirect_ref 0x2aaaac2e9bc0 side-effects
arg 0 <call_expr 0x2aaaac1f6750
type <record_type 0x2aaaac2f75e8 b TI
Hence, decl_type == NULL - which will crash at:
7464 structure_alloc_comps (gfc_symbol * der_type, tree decl,
7465 tree dest, int rank, int purpose)
...
7487 decl_type = TREE_TYPE (decl);
(gdb)
7489 if ((POINTER_TYPE_P (decl_type) && rank != 0)
|| (TREE_CODE (decl_type) == REFERENCE_TYPE && rank == 0))
That's called from:
/* Allocated allocatable components of derived types must be
deallocated for non-variable scalars. Non-variable arrays are
dealt with in trans-array.c(gfc_conv_array_parameter). */
if (e && (e->ts.type == BT_DERIVED || e->ts.type == BT_CLASS)
&& e->ts.u.derived->attr.alloc_comp
&& !(e->symtree && e->symtree->n.sym->attr.pointer)
&& (e->expr_type != EXPR_VARIABLE && !e->rank))
{
...
tmp = gfc_deallocate_alloc_comp (e->ts.u.derived, tmp, parm_rank);
gfc_add_expr_to_block (&se->post, tmp);
}
which shows that a temporary is required.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/58586] [OOP] ICE with derived type with a polymorphic allocatable component passed by value
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
2013-10-01 21:13 ` [Bug fortran/58586] [OOP] " burnus at gcc dot gnu.org
@ 2014-01-05 12:34 ` dominiq at lps dot ens.fr
2014-01-05 13:53 ` [Bug fortran/58586] ICE with derived type with " janus at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-01-05 12:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-01-05
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/58586] ICE with derived type with allocatable component passed by value
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
2013-10-01 21:13 ` [Bug fortran/58586] [OOP] " burnus at gcc dot gnu.org
2014-01-05 12:34 ` dominiq at lps dot ens.fr
@ 2014-01-05 13:53 ` janus at gcc dot gnu.org
2014-01-05 14:00 ` janus at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: janus at gcc dot gnu.org @ 2014-01-05 13:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[OOP] ICE with derived type |ICE with derived type with
|with a polymorphic |allocatable component
|allocatable component |passed by value
|passed by value |
--- Comment #2 from janus at gcc dot gnu.org ---
Reduced test case with the same ICE:
module mod
type :: a
end type
type :: b
type(a), allocatable :: a
end type
contains
subroutine add (c)
type(b), value :: c
end subroutine
type(b) function b_init()
end function
end module
use mod
call add(b_init())
end
The component does not have to be polymorphic to trigger the error.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/58586] ICE with derived type with allocatable component passed by value
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
` (2 preceding siblings ...)
2014-01-05 13:53 ` [Bug fortran/58586] ICE with derived type with " janus at gcc dot gnu.org
@ 2014-01-05 14:00 ` janus at gcc dot gnu.org
2015-04-15 18:04 ` vehre at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: janus at gcc dot gnu.org @ 2014-01-05 14:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
--- Comment #3 from janus at gcc dot gnu.org ---
Further reduction:
type :: b
integer, allocatable :: a
end type
call add(b(null()))
contains
subroutine add (c)
type(b), value :: c
end subroutine
end
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/58586] ICE with derived type with allocatable component passed by value
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
` (3 preceding siblings ...)
2014-01-05 14:00 ` janus at gcc dot gnu.org
@ 2015-04-15 18:04 ` vehre at gcc dot gnu.org
2015-05-11 9:08 ` dominiq at lps dot ens.fr
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-04-15 18:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
vehre at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
--- Comment #4 from vehre at gcc dot gnu.org ---
Fix proposed at:
https://gcc.gnu.org/ml/fortran/2015-04/msg00058.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/58586] ICE with derived type with allocatable component passed by value
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
` (4 preceding siblings ...)
2015-04-15 18:04 ` vehre at gcc dot gnu.org
@ 2015-05-11 9:08 ` dominiq at lps dot ens.fr
2015-05-11 10:06 ` juergen.reuter at desy dot de
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-05-11 9:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Contrary to Dominique's comment in
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65894#c30
> adding the patch in
> https://gcc.gnu.org/ml/fortran/2015-04/msg00058.html
> on top of r222970 doesn't break our code, and all of our tests run as intended.
I was speaking of more recent patches such as
https://gcc.gnu.org/ml/fortran/2015-05/msg00017.html
or
https://gcc.gnu.org/ml/fortran/2015-05/msg00035.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/58586] ICE with derived type with allocatable component passed by value
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
` (5 preceding siblings ...)
2015-05-11 9:08 ` dominiq at lps dot ens.fr
@ 2015-05-11 10:06 ` juergen.reuter at desy dot de
2015-07-06 10:26 ` vehre at gcc dot gnu.org
2015-07-09 10:42 ` vehre at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: juergen.reuter at desy dot de @ 2015-05-11 10:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
--- Comment #7 from Jürgen Reuter <juergen.reuter at desy dot de> ---
Hm, ok, these are not just in a single file, cannot promise that I will be able
to look into them. :(
>From gcc-bugs-return-485982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 11 10:12:20 2015
Return-Path: <gcc-bugs-return-485982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 66882 invoked by alias); 11 May 2015 10:12:19 -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 66833 invoked by uid 48); 11 May 2015 10:12:16 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66101] New: [5/6 Regression] internal compiler error: in verify_loop_structure, at cfgloop.c:1662
Date: Mon, 11 May 2015 10:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-66101-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-05/txt/msg00822.txt.bz2
Content-length: 1763
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66101
Bug ID: 66101
Summary: [5/6 Regression] internal compiler error: in
verify_loop_structure, at cfgloop.c:1662
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
$ ./cc1 -quiet -O2 o.c
o.c: In function ‘bar’:
o.c:8:5: warning: implicit declaration of function ‘longjmp’
[-Wimplicit-function-declaration]
longjmp ();
^
o.c: In function ‘foo’:
o.c:16:3: warning: implicit declaration of function ‘_setjmp’
[-Wimplicit-function-declaration]
_setjmp ();
^
o.c:29:1: error: size of loop 1 should be 3, not 5
}
^
o.c:29:1: internal compiler error: in verify_loop_structure, at cfgloop.c:1662
0x8437cc verify_loop_structure()
/home/marek/src/gcc/gcc/cfgloop.c:1662
0xb9b354 loop_optimizer_init(unsigned int)
/home/marek/src/gcc/gcc/loop-init.c:124
0xc872fa execute
/home/marek/src/gcc/gcc/predict.c:3056
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
int a, c, d, e;
int
bar ()
{
int b = *(long *) 7 == 5 ? : 0;
if (a || a > b)
longjmp ();
return 1;
}
void
foo ()
{
long f;
_setjmp ();
for (; d; c++)
switch (c)
case 0:
{
f = bar () >> 1;
if (e)
goto L;
if (bar () >> 1)
goto L;
}
L:
;
}
>From gcc-bugs-return-485984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon May 11 10:12:41 2015
Return-Path: <gcc-bugs-return-485984-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 73596 invoked by alias); 11 May 2015 10:12:40 -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 73457 invoked by uid 48); 11 May 2015 10:12:37 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/66101] [5/6 Regression] internal compiler error: in verify_loop_structure, at cfgloop.c:1662
Date: Mon, 11 May 2015 10:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-66101-4-SSQFPgH1fS@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66101-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66101-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: 2015-05/txt/msg00824.txt.bz2
Content-length: 292
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf101
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |5.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/58586] ICE with derived type with allocatable component passed by value
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
` (6 preceding siblings ...)
2015-05-11 10:06 ` juergen.reuter at desy dot de
@ 2015-07-06 10:26 ` vehre at gcc dot gnu.org
2015-07-09 10:42 ` vehre at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-07-06 10:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
--- Comment #8 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Mon Jul 6 10:26:12 2015
New Revision: 225447
URL: https://gcc.gnu.org/viewcvs?rev=225447&root=gcc&view=rev
Log:
gcc/testsuite/ChangeLog:
2015-07-06 Andre Vehreschild <vehre@gmx.de>
PR fortran/58586
* gfortran.dg/alloc_comp_class_3.f03: New test.
* gfortran.dg/alloc_comp_class_4.f03: New test.
gcc/fortran/ChangeLog:
2015-07-06 Andre Vehreschild <vehre@gmx.de>
PR fortran/58586
* resolve.c (resolve_symbol): Non-private functions in modules
with allocatable or pointer components are marked referenced
now. Furthermore is the default init especially for those
components now done in gfc_conf_procedure_call preventing
duplicate code.
* trans-decl.c (gfc_generate_function_code): Generate a fake
result decl for functions returning an object with allocatable
components and initialize them.
* trans-expr.c (gfc_conv_procedure_call): For value typed trees
use the tree without indirect ref. And for non-decl trees
add a temporary variable to prevent evaluating the tree
multiple times (prevent multiple function evaluations).
* trans.h: Made gfc_trans_structure_assign () protoype
available, which is now needed by trans-decl.c:gfc_generate_
function_code(), too.
Added:
trunk/gcc/testsuite/gfortran.dg/alloc_comp_class_3.f03
trunk/gcc/testsuite/gfortran.dg/alloc_comp_class_4.f03
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/trans-decl.c
trunk/gcc/fortran/trans-expr.c
trunk/gcc/fortran/trans.h
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/58586] ICE with derived type with allocatable component passed by value
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
` (7 preceding siblings ...)
2015-07-06 10:26 ` vehre at gcc dot gnu.org
@ 2015-07-09 10:42 ` vehre at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: vehre at gcc dot gnu.org @ 2015-07-09 10:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
vehre at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from vehre at gcc dot gnu.org ---
No objections yet, declaring it fixed with r225447.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-07-09 10:42 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-30 21:57 [Bug fortran/58586] New: ICE with derived type with a polymorphic allocatable component passed by value vladimir.fuka at gmail dot com
2013-10-01 21:13 ` [Bug fortran/58586] [OOP] " burnus at gcc dot gnu.org
2014-01-05 12:34 ` dominiq at lps dot ens.fr
2014-01-05 13:53 ` [Bug fortran/58586] ICE with derived type with " janus at gcc dot gnu.org
2014-01-05 14:00 ` janus at gcc dot gnu.org
2015-04-15 18:04 ` vehre at gcc dot gnu.org
2015-05-11 9:08 ` dominiq at lps dot ens.fr
2015-05-11 10:06 ` juergen.reuter at desy dot de
2015-07-06 10:26 ` vehre at gcc dot gnu.org
2015-07-09 10:42 ` vehre 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).