public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
@ 2008-12-30 20:59 danglin at gcc dot gnu dot org
2008-12-30 21:05 ` [Bug fortran/38675] " danglin at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-12-30 20:59 UTC (permalink / raw)
To: gcc-bugs
This bug has been around for awhile on the 4.3 branch. Not present in 4.4.
Executing on host: /mnt/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran
-B/
mnt/gnu/gcc/objdir/gcc/testsuite/gfortran/../../
/mnt/gnu/gcc/gcc/gcc/testsuite/
gfortran.dg/parameter_array_init_3.f90 -O -pedantic-errors -S -o
parameter_
array_init_3.s (timeout = 300)
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
f951: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
FAIL: gfortran.dg/parameter_array_init_3.f90 -O (test for excess errors)
Excess errors:
f951: internal compiler error: Segmentation fault
(gdb) r
Starting program: /mnt/gnu/gcc/objdir/gcc/f951
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/parameter_array_init_3.f90 -quiet
-dumpbase parameter_array_init_3.f90 -auxbase-strip parameter_array_init_3.s -O
-pedantic-errors -version -o parameter_array_init_3.s -fintrinsic-modules-path
finclude
warning: Private mapping of shared library text was not specified
by the executable; setting a breakpoint in a shared library which
is not privately mapped will not work. See the HP-UX 11i v3 chatr
manpage for methods to privately map shared library text.
warning: Loadable segment ".tbss" outside of ELF segments
warning: Loadable segment ".tbss" outside of ELF segments
GNU F95 (GCC) version 4.3.3 20081229 (prerelease) [gcc-4_3-branch revision
142953] (hppa64-hp-hpux11.11)
compiled by GNU C version 4.3.3 20081229 (prerelease) [gcc-4_3-branch
revision 142953], GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Program received signal SIGSEGV, Segmentation fault.
0x400000000070efb0 in __gmpz_add ()
(gdb) bt
#0 0x400000000070efb0 in __gmpz_add ()
#1 0x4000000000173894 in simplify_const_ref (p=0x8000000100130e58)
at ../../gcc/gcc/fortran/expr.c:1049
#2 0x4000000000174134 in gfc_simplify_expr (p=0x8000000100130e58, type=1)
at ../../gcc/gcc/fortran/expr.c:1700
#3 0x40000000001745a8 in simplify_parameter_variable (p=0x8000000100130120,
type=1) at ../../gcc/gcc/fortran/expr.c:1567
#4 0x4000000000174110 in gfc_simplify_expr (p=0x8000000100130120, type=1)
at ../../gcc/gcc/fortran/expr.c:1672
#5 0x4000000000150fd0 in expand_constructor (c=0x8000000100130990)
at ../../gcc/gcc/fortran/array.c:1385
#6 0x4000000000151290 in expand_constructor (c=0x800000010012f928)
at ../../gcc/gcc/fortran/array.c:1262
#7 0x4000000000151778 in gfc_array_size (array=0x8000000100130490,
result=0x800003fffdff18c8) at ../../gcc/gcc/fortran/array.c:1983
#8 0x4000000000151f2c in gfc_array_dimen_size (array=0x8000000100132028,
dimen=1, result=0x8) at ../../gcc/gcc/fortran/array.c:1940
#9 0x40000000001bae50 in expression_rank (e=0x8000000100130490)
at ../../gcc/gcc/fortran/resolve.c:4007
#10 0x40000000001bc8d4 in gfc_resolve_expr (e=0x8000000100130490)
at ../../gcc/gcc/fortran/resolve.c:4383
#11 0x40000000001757e0 in gfc_match_init_expr (result=0x800003fffdff1410)
at ../../gcc/gcc/fortran/expr.c:2379
---Type <return> to continue, or q <return> to quit---
#12 0x40000000001684c0 in gfc_match_data_decl ()
at ../../gcc/gcc/fortran/decl.c:1743
#13 0x40000000001ab530 in match_word (str=0x8000000100132028 "\200",
subr=0x4000000000136070, old_locus=0x800003fffdff12c0)
at ../../gcc/gcc/fortran/parse.c:64
#14 0x40000000001abee4 in decode_statement ()
at ../../gcc/gcc/fortran/parse.c:280
#15 0x40000000001ad9b4 in next_statement ()
at ../../gcc/gcc/fortran/parse.c:652
#16 0x40000000001af76c in parse_spec (st=ST_DATA_DECL)
at ../../gcc/gcc/fortran/parse.c:2179
#17 0x40000000001b251c in gfc_parse_file ()
at ../../gcc/gcc/fortran/parse.c:3395
#18 0x40000000001e6c0c in gfc_be_parse_file (
set_yydebug=<value optimized out>) at ../../gcc/gcc/fortran/f95-lang.c:260
#19 0x400000000042ca7c in toplev_main (argc=<value optimized out>,
argv=<value optimized out>) at ../../gcc/gcc/toplev.c:1042
#20 0x400000000023188c in main (argc=1253416, argv=0x8)
at ../../gcc/gcc/main.c:35
--
Summary: FAIL: gfortran.dg/parameter_array_init_3.f90 -O
(internal compiler error)
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
GCC build triplet: hppa64-hp-hpux11.11
GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
@ 2008-12-30 21:05 ` danglin at gcc dot gnu dot org
2008-12-30 21:19 ` kargl at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-12-30 21:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from danglin at gcc dot gnu dot org 2008-12-30 21:03 -------
(gdb) p *p
$2 = {expr_type = EXPR_ARRAY, ts = {type = BT_INTEGER, kind = 1,
derived = 0x0, cl = 0x0, is_c_interop = 0, is_iso_c = 0,
f90_type = BT_UNKNOWN}, rank = 0, shape = 0x8000000100131b58,
symtree = 0x0, ref = 0x8000000100131b90, where = {
nextc = 0x80000001001279e3 " [(1,i=1,len(HEX1))]",
lb = 0x8000000100127998}, inline_noncopying_intrinsic = 0, is_boz = 0,
error = 0, con_by_offset = 0x0, representation = {length = 0,
string = 0x0}, value = {logical = -2147483647, integer = {{
_mp_alloc = -2147483647, _mp_size = 1242656, _mp_d = 0x0}}, real = {{
_mpfr_prec = 9223372041150985760, _mpfr_sign = 0, _mpfr_exp = 0,
_mpfr_d = 0x0}}, complex = {r = {{_mpfr_prec = 9223372041150985760,
_mpfr_sign = 0, _mpfr_exp = 0, _mpfr_d = 0x0}}, i = {{
_mpfr_prec = 0, _mpfr_sign = 0, _mpfr_exp = 0, _mpfr_d = 0x0}}},
op = {operator = -2147483647, uop = 0x0, op1 = 0x0, op2 = 0x0},
function = {actual = 0x800000010012f620, name = 0x0, isym = 0x0,
esym = 0x0}, character = {length = -2147483647, string = 0x0},
constructor = 0x800000010012f620}}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
2008-12-30 21:05 ` [Bug fortran/38675] " danglin at gcc dot gnu dot org
@ 2008-12-30 21:19 ` kargl at gcc dot gnu dot org
2008-12-30 21:42 ` dave at hiauly1 dot hia dot nrc dot ca
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: kargl at gcc dot gnu dot org @ 2008-12-30 21:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kargl at gcc dot gnu dot org 2008-12-30 21:15 -------
See PR 37469
Given the last comment. This will probably be closed with a WONTFIX.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
2008-12-30 21:05 ` [Bug fortran/38675] " danglin at gcc dot gnu dot org
2008-12-30 21:19 ` kargl at gcc dot gnu dot org
@ 2008-12-30 21:42 ` dave at hiauly1 dot hia dot nrc dot ca
2008-12-30 22:13 ` mikael at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2008-12-30 21:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dave at hiauly1 dot hia dot nrc dot ca 2008-12-30 21:40 -------
Subject: Re: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal
compiler error)
> Given the last comment. This will probably be closed with a WONTFIX.
Is backporting the fix for PR fortran/35840, or just gfc_reduce_init_expr,
that difficult?
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-12-30 21:42 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2008-12-30 22:13 ` mikael at gcc dot gnu dot org
2008-12-30 22:22 ` dave at hiauly1 dot hia dot nrc dot ca
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mikael at gcc dot gnu dot org @ 2008-12-30 22:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mikael at gcc dot gnu dot org 2008-12-30 22:12 -------
(In reply to comment #3)
> Is backporting the fix for PR fortran/35840, or just gfc_reduce_init_expr,
> that difficult?
No, it should be manageable.
I gave up when the patch refused to apply. Sorry.
I could try harder.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-12-30 22:13 ` mikael at gcc dot gnu dot org
@ 2008-12-30 22:22 ` dave at hiauly1 dot hia dot nrc dot ca
2008-12-31 23:29 ` dave at hiauly1 dot hia dot nrc dot ca
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2008-12-30 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca 2008-12-30 22:21 -------
Subject: Re: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal
compiler error)
> > Is backporting the fix for PR fortran/35840, or just gfc_reduce_init_expr,
> > that difficult?
> No, it should be manageable.
> I gave up when the patch refused to apply. Sorry.
> I could try harder.
There were a few formating changes and try changed to gfc_try. I'm
just about to do a build with the backport.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-12-30 22:22 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2008-12-31 23:29 ` dave at hiauly1 dot hia dot nrc dot ca
2009-01-01 17:44 ` danglin at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2008-12-31 23:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from dave at hiauly1 dot hia dot nrc dot ca 2008-12-31 23:28 -------
Subject: Re: FAIL:
gfortran.dg/parameter_array_init_3.f90 -O (internal compiler
error)
On Tue, 30 Dec 2008, mikael at gcc dot gnu dot org wrote:
> > Is backporting the fix for PR fortran/35840, or just gfc_reduce_init_expr,
> > that difficult?
> No, it should be manageable.
I currently testing the attached backport. It fixes the ICE on
hppa64-hp-hpux11.11. If there are no regressions on hppa2.0w-hp-hpux11.11, I
will commit.
I left off the change to io.c as it's a secondary issue.
Dave
------- Comment #7 from dave at hiauly1 dot hia dot nrc dot ca 2008-12-31 23:28 -------
Created an attachment (id=17019)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17019&action=view)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-12-31 23:29 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2009-01-01 17:44 ` danglin at gcc dot gnu dot org
2009-01-01 17:45 ` danglin at gcc dot gnu dot org
2009-01-01 17:47 ` danglin at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-01-01 17:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from danglin at gcc dot gnu dot org 2009-01-01 17:43 -------
Subject: Bug 38675
Author: danglin
Date: Thu Jan 1 17:42:00 2009
New Revision: 142995
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142995
Log:
PR fortran/38675
Backport from mainline:
2008-12-09 Mikael Morin <mikael.morin@tele2.fr>
PR fortran/37469
* expr.c (find_array_element): Simplify array bounds.
Assert that both bounds are constant expressions.
2008-10-31 Mikael Morin <mikael.morin@tele2.fr>
* expr.c (gfc_reduce_init_expr): New function, containing checking code
from gfc_match_init_expr, so that checking can be deferred.
(gfc_match_init_expr): Use gfc_reduce_init_expr.
* match.h (gfc_reduce_init_expr): Prototype added.
Modified:
branches/gcc-4_3-branch/gcc/fortran/ChangeLog
branches/gcc-4_3-branch/gcc/fortran/expr.c
branches/gcc-4_3-branch/gcc/fortran/match.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-01-01 17:44 ` danglin at gcc dot gnu dot org
@ 2009-01-01 17:45 ` danglin at gcc dot gnu dot org
2009-01-01 17:47 ` danglin at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-01-01 17:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from danglin at gcc dot gnu dot org 2009-01-01 17:44 -------
Fixed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug fortran/38675] FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error)
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-01-01 17:45 ` danglin at gcc dot gnu dot org
@ 2009-01-01 17:47 ` danglin at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-01-01 17:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from danglin at gcc dot gnu dot org 2009-01-01 17:45 -------
Forgot to check button.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38675
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-01-01 17:47 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-30 20:59 [Bug fortran/38675] New: FAIL: gfortran.dg/parameter_array_init_3.f90 -O (internal compiler error) danglin at gcc dot gnu dot org
2008-12-30 21:05 ` [Bug fortran/38675] " danglin at gcc dot gnu dot org
2008-12-30 21:19 ` kargl at gcc dot gnu dot org
2008-12-30 21:42 ` dave at hiauly1 dot hia dot nrc dot ca
2008-12-30 22:13 ` mikael at gcc dot gnu dot org
2008-12-30 22:22 ` dave at hiauly1 dot hia dot nrc dot ca
2008-12-31 23:29 ` dave at hiauly1 dot hia dot nrc dot ca
2009-01-01 17:44 ` danglin at gcc dot gnu dot org
2009-01-01 17:45 ` danglin at gcc dot gnu dot org
2009-01-01 17:47 ` danglin 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).