public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error
@ 2009-12-16 23:47 danglin at gcc dot gnu dot org
2009-12-17 0:45 ` [Bug fortran/42397] " rguenth at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-12-16 23:47 UTC (permalink / raw)
To: gcc-bugs
Executing on host:
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gfortran/../../gfortran
-B/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gfortran/../../
f_lto_20091028-2_0.o f_lto_20091028-2_1.o -O2 -fwhopr -r -nostdlib
-finline-functions
-B/home/dave/gnu/gcc-4.5/objdir/hppa-linux/./libgfortran/.libs
-L/home/dave/gnu/gcc-4.5/objdir/hppa-linux/./libgfortran/.libs
-L/home/dave/gnu/gcc-4.5/objdir/hppa-linux/./libgfortran/.libs
-L/home/dave/gnu/gcc-4.5/objdir/hppa-linux/./libiberty -o
gfortran-dg-lto-20091028-2-11 (timeout = 300)In file included from
/home/dave/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/lto/20091028-2_0.f90:4:0,
from
:2:/home/dave/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/lto/20091028-2_1.c: In
function
'int_gen_ti_header_char':/home/dave/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/lto/20091028-2_1.c:8:10:
internal compiler error: Floating point exceptionPlease submit a full bug
report,with preprocessed source if appropriate.See
<http://gcc.gnu.org/bugs.html> for instructions.lto1: fatal error:
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gfortran/../../gfortran terminated
with status 256compilation terminated.lto-wrapper:
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gfortran/../../gfortran returned 1
exit status
dave@hiauly6:~/gnu/gcc/objdir/gcc$ ./xgcc -b./ -v
Using built-in specs.
COLLECT_GCC=./xgcc
xgcc: unrecognized option '-b./'
Target: hppa-linux
Configured with: ../gcc/configure --with-gnu-as --with-gnu-ld --enable-shared
--prefix=/home/dave/opt/gnu/gcc/gcc-4.5.0
--with-local-prefix=/home/dave/opt/gnu --enable-threads=posix
--enable-__cxa_atexit --build=hppa-linux --enable-clocale=gnu
--enable-java-gc=boehm --enable-java-awt=xlib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--with-libelf=/home/dave/opt/gnu
Thread model: posix
gcc version 4.5.0 20091215 (experimental) [trunk revision 155276] (GCC)
--
Summary: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-
f_lto_20091028-2_1.o link, internal compiler error
Product: gcc
Version: 4.5.0
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: hppa-unknown-linux-gnu
GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42397
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/42397] FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error
2009-12-16 23:47 [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error danglin at gcc dot gnu dot org
@ 2009-12-17 0:45 ` rguenth at gcc dot gnu dot org
2009-12-17 1:14 ` danglin at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-17 0:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-12-17 00:45 -------
Can you provide a backtrace?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42397
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/42397] FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error
2009-12-16 23:47 [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error danglin at gcc dot gnu dot org
2009-12-17 0:45 ` [Bug fortran/42397] " rguenth at gcc dot gnu dot org
@ 2009-12-17 1:14 ` danglin at gcc dot gnu dot org
2009-12-17 1:57 ` danglin at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-12-17 1:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from danglin at gcc dot gnu dot org 2009-12-17 01:14 -------
#0 $$divoI () at ../../../gcc/libgcc/../gcc/config/pa/milli64.S:435
#1 0x00596158 in gen_movmemsi (operand0=0x4007d480, operand1=0x4007d490,
operand2=0x40013220, operand3=0x40013200)
at ../../gcc/gcc/config/pa/pa.md:3098
#2 0x00163dac in emit_block_move_via_movmem (x=<value optimized out>,
y=<value optimized out>, size=0x40013220, method=BLOCK_OP_NORMAL,
expected_align=<value optimized out>, expected_size=<value optimized out>)
at ../../gcc/gcc/expr.c:1351
#3 emit_block_move_hints (x=<value optimized out>, y=<value optimized out>,
size=0x40013220, method=BLOCK_OP_NORMAL,
expected_align=<value optimized out>, expected_size=<value optimized out>)
at ../../gcc/gcc/expr.c:1222
#4 0x00163dac in emit_block_move_via_movmem (x=<value optimized out>,
y=<value optimized out>, size=0x40013220, method=BLOCK_OP_NORMAL,
expected_align=<value optimized out>, expected_size=<value optimized out>)
at ../../gcc/gcc/expr.c:1351
#5 emit_block_move_hints (x=<value optimized out>, y=<value optimized out>,
size=0x40013220, method=BLOCK_OP_NORMAL,
expected_align=<value optimized out>, expected_size=<value optimized out>)
at ../../gcc/gcc/expr.c:1222
[many frames deleted]
(gdb) frame 1
#1 0x00596158 in gen_movmemsi (operand0=0x4007d480, operand1=0x4007d490,
operand2=0x40013220, operand3=0x40013200)
at ../../gcc/gcc/config/pa/pa.md:3098
3098 size = INTVAL (operands[2]);
Current language: auto
The current source language is "auto; currently c".
(gdb) p debug_rtx (operand3)
(const_int 0 [0x0])
(gdb) p debug_rtx (opalign)
(const_int 0 [0x0])
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42397
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/42397] FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error
2009-12-16 23:47 [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error danglin at gcc dot gnu dot org
2009-12-17 0:45 ` [Bug fortran/42397] " rguenth at gcc dot gnu dot org
2009-12-17 1:14 ` danglin at gcc dot gnu dot org
@ 2009-12-17 1:57 ` danglin at gcc dot gnu dot org
2009-12-17 2:12 ` danglin at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-12-17 1:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from danglin at gcc dot gnu dot org 2009-12-17 01:57 -------
The problem is here:
0x00163a80 in emit_block_move_via_movmem (x=<value optimized out>,
y=<value optimized out>, size=0x40013220, method=BLOCK_OP_NORMAL,
expected_align=<value optimized out>, expected_size=<value optimized out>)
at ../../gcc/gcc/expr.c:1300
1300 rtx opalign = GEN_INT (align / BITS_PER_UNIT);
(gdb) p/x $r23
$13 = 0x1
align is 1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42397
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/42397] FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error
2009-12-16 23:47 [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error danglin at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-12-17 1:57 ` danglin at gcc dot gnu dot org
@ 2009-12-17 2:12 ` danglin at gcc dot gnu dot org
2009-12-17 11:24 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-12-17 2:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from danglin at gcc dot gnu dot org 2009-12-17 02:12 -------
(gdb) p debug_rtx (x)
(mem/c/i:BLK (reg/f:SI 109) [0 C.1197+0])
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42397
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug fortran/42397] FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error
2009-12-16 23:47 [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error danglin at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-12-17 2:12 ` danglin at gcc dot gnu dot org
@ 2009-12-17 11:24 ` rguenth at gcc dot gnu dot org
2009-12-17 11:53 ` [Bug middle-end/42397] " rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-17 11:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-12-17 11:23 -------
I can reproduce it on i?86-linux with an extra assert.
Index: gcc/expr.c
===================================================================
--- gcc/expr.c (revision 155297)
+++ gcc/expr.c (working copy)
@@ -1194,6 +1194,7 @@ emit_block_move_hints (rtx x, rtx y, rtx
}
align = MIN (MEM_ALIGN (x), MEM_ALIGN (y));
+ gcc_assert (align >= BITS_PER_UNIT);
gcc_assert (MEM_P (x));
gcc_assert (MEM_P (y));
the testcase is sort-of invalid as it stores to a CONST_DECL via a memcpy.
But it's only undefined at runtime so we shouldn't ICE here. CONST_DECLs
are given 1 as alignment appearantly which is sort-of bogus - they
should get the alignment of the mode or at least BITS_PER_UNIT and
get_object_alignment doesn't honor that.
I have a patch.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-12-17 11:23:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42397
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42397] FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error
2009-12-16 23:47 [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error danglin at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-12-17 11:24 ` rguenth at gcc dot gnu dot org
@ 2009-12-17 11:53 ` rguenth at gcc dot gnu dot org
2009-12-17 14:37 ` rguenth at gcc dot gnu dot org
2009-12-17 14:39 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-17 11:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2009-12-17 11:53 -------
It's also a middle-end issue.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|fortran |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42397
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42397] FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error
2009-12-16 23:47 [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error danglin at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-12-17 11:53 ` [Bug middle-end/42397] " rguenth at gcc dot gnu dot org
@ 2009-12-17 14:37 ` rguenth at gcc dot gnu dot org
2009-12-17 14:39 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-17 14:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2009-12-17 14:36 -------
Subject: Bug 42397
Author: rguenth
Date: Thu Dec 17 14:36:43 2009
New Revision: 155316
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155316
Log:
2009-12-17 Richard Guenther <rguenther@suse.de>
PR middle-end/42397
* builtins.c (get_object_alignment): Properly deal with
a CONST_DECL base.
* expr.c (emit_block_move_hints): Assert the alignment makes
sense.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c
trunk/gcc/expr.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42397
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/42397] FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error
2009-12-16 23:47 [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error danglin at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-12-17 14:37 ` rguenth at gcc dot gnu dot org
@ 2009-12-17 14:39 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-17 14:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2009-12-17 14:39 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42397
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-12-17 14:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-16 23:47 [Bug fortran/42397] New: FAIL: gfortran.dg/lto/20091028-2 f_lto_20091028-2_0.o-f_lto_20091028-2_1.o link, internal compiler error danglin at gcc dot gnu dot org
2009-12-17 0:45 ` [Bug fortran/42397] " rguenth at gcc dot gnu dot org
2009-12-17 1:14 ` danglin at gcc dot gnu dot org
2009-12-17 1:57 ` danglin at gcc dot gnu dot org
2009-12-17 2:12 ` danglin at gcc dot gnu dot org
2009-12-17 11:24 ` rguenth at gcc dot gnu dot org
2009-12-17 11:53 ` [Bug middle-end/42397] " rguenth at gcc dot gnu dot org
2009-12-17 14:37 ` rguenth at gcc dot gnu dot org
2009-12-17 14:39 ` rguenth 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).