public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/24193] New: ICE in extract_insn while compiling libgfortran
@ 2005-10-04 15:45 schwab at suse dot de
2005-10-04 15:46 ` [Bug target/24193] " schwab at suse dot de
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: schwab at suse dot de @ 2005-10-04 15:45 UTC (permalink / raw)
To: gcc-bugs
Compiling libgfortran results in this ICE:
../../../libgfortran/generated/maxloc0_16_i4.c: In function
‘maxloc0_16_i4’:
../../../libgfortran/generated/maxloc0_16_i4.c:154: error: unrecognizable insn:
(insn 592 591 593 22 ../../../libgfortran/generated/maxloc0_16_i4.c:107 (set
(mem:DI (post_modify:DI (reg:DI 17 r17 [orig:382 ivtmp.83 ] [382])
(plus:DI (reg:DI 17 r17 [orig:382 ivtmp.83 ] [382])
(reg:DI 23 r23 [orig:377 ivtmp.115 ] [377]))) [11 S8 A64])
(reg:DI 15 r15)) -1 (nil)
(expr_list:REG_INC (reg:DI 17 r17 [orig:382 ivtmp.83 ] [382])
(nil)))
../../../libgfortran/generated/maxloc0_16_i4.c:154: internal compiler error: in
extract_insn, at recog.c:2084
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This appears to be a very old bug, I was able to reproduce it with 3.3
20020930.
--
Summary: ICE in extract_insn while compiling libgfortran
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, build
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schwab at suse dot de
GCC target triplet: ia64-*-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
@ 2005-10-04 15:46 ` schwab at suse dot de
2005-10-04 17:29 ` [Bug target/24193] [4.1 Regression] " pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: schwab at suse dot de @ 2005-10-04 15:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from schwab at suse dot de 2005-10-04 15:46 -------
Created an attachment (id=9873)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9873&action=view)
Preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
2005-10-04 15:46 ` [Bug target/24193] " schwab at suse dot de
@ 2005-10-04 17:29 ` pinskia at gcc dot gnu dot org
2005-10-04 18:09 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-04 17:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-04 17:29 -------
Even though it is a latent bug, this causes a build failure, therefor it is a
considered a regression.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Summary|ICE in extract_insn while |[4.1 Regression] ICE in
|compiling libgfortran |extract_insn while compiling
| |libgfortran
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
2005-10-04 15:46 ` [Bug target/24193] " schwab at suse dot de
2005-10-04 17:29 ` [Bug target/24193] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-10-04 18:09 ` pinskia at gcc dot gnu dot org
2005-10-04 18:17 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-04 18:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-04 18:09 -------
Reducing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
` (2 preceding siblings ...)
2005-10-04 18:09 ` pinskia at gcc dot gnu dot org
@ 2005-10-04 18:17 ` pinskia at gcc dot gnu dot org
2005-10-06 16:04 ` schwab at suse dot de
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-04 18:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2005-10-04 18:17 -------
Confirmed, reduced testcase:
void g (__int128_t *dest, long dstride, long rank)
{
long n;
for (n = 0; n < rank; n++)
dest[n * dstride] = 1;
}
So TImode is fully supported on ia64.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-10-04 18:17:34
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
` (3 preceding siblings ...)
2005-10-04 18:17 ` pinskia at gcc dot gnu dot org
@ 2005-10-06 16:04 ` schwab at suse dot de
2005-10-06 17:41 ` wilson at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: schwab at suse dot de @ 2005-10-06 16:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from schwab at suse dot de 2005-10-06 16:04 -------
*** Bug 24240 has been marked as a duplicate of this bug. ***
--
schwab at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sje at cup dot hp dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
` (4 preceding siblings ...)
2005-10-06 16:04 ` schwab at suse dot de
@ 2005-10-06 17:41 ` wilson at gcc dot gnu dot org
2005-10-06 21:02 ` sje at cup dot hp dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-10-06 17:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from wilson at gcc dot gnu dot org 2005-10-06 17:41 -------
Loads can have post_increment addresses with an immediate or register
increment. Stores can have post_increment address with only an immediate
increment. We have a special predicate, destination_operand, that checks for
this. Unfortunately, we haven't been using it consistently. And people who
have noticed this problem have fixed only the one pattern that they noticed was
broken, instead of fixing all of them.
Scanning the md file, I see that movbi and movti_internal at least are broken.
There may be more. I think gr_spill_internal is also broken. I'm off to a
meeting and will have to finish this later.
--
wilson at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wilson at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
` (5 preceding siblings ...)
2005-10-06 17:41 ` wilson at gcc dot gnu dot org
@ 2005-10-06 21:02 ` sje at cup dot hp dot com
2005-10-06 21:21 ` wilson at tuliptree dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: sje at cup dot hp dot com @ 2005-10-06 21:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from sje at cup dot hp dot com 2005-10-06 21:02 -------
I haven't done a full build/test but I did verify that changing operand 0 of
movti_internal from general_operand to destination_operand fixed this failure.
I was wondering if operand 1 should be changed from general_operand to
move_operand. All the other integer mov instructions use move_operand as the
source. The floating point move instructions use general_operand as the
source.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
` (6 preceding siblings ...)
2005-10-06 21:02 ` sje at cup dot hp dot com
@ 2005-10-06 21:21 ` wilson at tuliptree dot org
2005-10-07 19:27 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: wilson at tuliptree dot org @ 2005-10-06 21:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from wilson at tuliptree dot org 2005-10-06 21:21 -------
Subject: Re: [4.1 Regression] ICE in extract_insn while
compiling libgfortran
On Thu, 2005-10-06 at 14:02, sje at cup dot hp dot com wrote:
> ------- Comment #7 from sje at cup dot hp dot com 2005-10-06 21:02 -------
> I haven't done a full build/test but I did verify that changing operand 0 of
> movti_internal from general_operand to destination_operand fixed this failure.
> I was wondering if operand 1 should be changed from general_operand to
> move_operand.
move_operand is general_operand minus some types of operands containing
symbol_refs that aren't valid. Since FP operands will never contain
symbol addresses, in theory, the use of move_operand instead of
general_operand is extra unnecessary overhead.
By the way, I added fr_spill to the list of patterns that I am fixing.
I am convinced I have the complete list now.
I have started a full build and test, but I have two patches to test and
one machine to test them on, so it will take me a while.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
` (7 preceding siblings ...)
2005-10-06 21:21 ` wilson at tuliptree dot org
@ 2005-10-07 19:27 ` cvs-commit at gcc dot gnu dot org
2005-10-07 19:57 ` wilson at gcc dot gnu dot org
2005-10-07 19:58 ` wilson at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-07 19:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from cvs-commit at gcc dot gnu dot org 2005-10-07 19:27 -------
Subject: Bug 24193
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: wilson@gcc.gnu.org 2005-10-07 19:27:37
Modified files:
gcc : ChangeLog
gcc/config/ia64: ia64.md
Log message:
Fix libgfortran build failure, stX insns don't allow post_inc addr w/
reg inc.
PR target/24193
* config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
fr_spill): Use destination_operand for operand 0.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.10119&r2=2.10120
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/ia64/ia64.md.diff?cvsroot=gcc&r1=1.159&r2=1.160
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
` (8 preceding siblings ...)
2005-10-07 19:27 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-07 19:57 ` wilson at gcc dot gnu dot org
2005-10-07 19:58 ` wilson at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-10-07 19:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from wilson at gcc dot gnu dot org 2005-10-07 19:57 -------
Mine. IA-64.
--
wilson at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |wilson at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-10-04 18:17:34 |2005-10-07 19:57:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/24193] [4.1 Regression] ICE in extract_insn while compiling libgfortran
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
` (9 preceding siblings ...)
2005-10-07 19:57 ` wilson at gcc dot gnu dot org
@ 2005-10-07 19:58 ` wilson at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-10-07 19:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from wilson at gcc dot gnu dot org 2005-10-07 19:58 -------
Fixed on mainline.
--
wilson at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24193
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2005-10-07 19:58 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-04 15:45 [Bug target/24193] New: ICE in extract_insn while compiling libgfortran schwab at suse dot de
2005-10-04 15:46 ` [Bug target/24193] " schwab at suse dot de
2005-10-04 17:29 ` [Bug target/24193] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-10-04 18:09 ` pinskia at gcc dot gnu dot org
2005-10-04 18:17 ` pinskia at gcc dot gnu dot org
2005-10-06 16:04 ` schwab at suse dot de
2005-10-06 17:41 ` wilson at gcc dot gnu dot org
2005-10-06 21:02 ` sje at cup dot hp dot com
2005-10-06 21:21 ` wilson at tuliptree dot org
2005-10-07 19:27 ` cvs-commit at gcc dot gnu dot org
2005-10-07 19:57 ` wilson at gcc dot gnu dot org
2005-10-07 19:58 ` wilson 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).