Bug 34393 - ICE: in extract_insn, at recog.c:1990
Summary: ICE: in extract_insn, at recog.c:1990
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Alan Modra
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: ice-on-valid-code
: 34542 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-12-08 20:32 UTC by Dominique d'Humieres
Modified: 2024-04-02 06:55 UTC (History)
3 users (show)

See Also:
Host:
Target: powerpc*-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed: 2008-02-13 06:27:58


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique d'Humieres 2007-12-08 20:32:05 UTC
On powerpc Darwin9, gcc.c-torture/compile/20071117-1.c gives an ICE:

/opt/gcc/_gcc-clean/gcc/testsuite/gcc.c-torture/compile/20071117-1.c: In function 'foo':
/opt/gcc/_gcc-clean/gcc/testsuite/gcc.c-torture/compile/20071117-1.c:13: error: unrecognizable insn:
(insn 29 28 30 3 /opt/gcc/_gcc-clean/gcc/testsuite/gcc.c-torture/compile/20071117-1.c:10 (set (mem/c:SI (mem/f/c/i:SI (plus:SI (reg/f:SI 115 virtual-stack-vars)
                    (const_int 4 [0x4])) [0 p+0 S4 A32]) [0 S4 A8])
        (reg:SI 134)) -1 (nil))
/opt/gcc/_gcc-clean/gcc/testsuite/gcc.c-torture/compile/20071117-1.c:13: internal compiler error: in extract_insn, at recog.c:1990
Comment 1 Andrew Pinski 2007-12-08 20:35:15 UTC
(mem/c:SI (mem/f/c/i:SI

that is just wrong.
Comment 2 Andrew Pinski 2007-12-19 02:14:56 UTC
Also fails on powerpc-linux-gnu.
Comment 3 Andrew Pinski 2007-12-20 22:55:49 UTC
*** Bug 34542 has been marked as a duplicate of this bug. ***
Comment 4 Joel Sherrill 2008-02-13 00:20:02 UTC
Also fails on powerpc-rtems

powerpc-rtems4.9-gcc (GCC) 4.3.0 20080209 (experimental) [trunk revision 132202]
Comment 5 Alan Modra 2008-02-14 00:15:30 UTC
Subject: Bug 34393

Author: amodra
Date: Thu Feb 14 00:14:45 2008
New Revision: 132304

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132304
Log:
	PR target/34393
	* config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
	to a reg.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.md

Comment 6 Alan Modra 2008-02-14 00:17:08 UTC
Subject: Bug 34393

Author: amodra
Date: Thu Feb 14 00:16:29 2008
New Revision: 132306

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132306
Log:
	PR target/34393
	* config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
	to a reg.


Modified:
    branches/gcc-4_2-branch/gcc/ChangeLog
    branches/gcc-4_2-branch/gcc/config/rs6000/rs6000.md

Comment 7 Alan Modra 2008-02-14 00:17:53 UTC
Subject: Bug 34393

Author: amodra
Date: Thu Feb 14 00:17:11 2008
New Revision: 132309

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132309
Log:
	PR target/34393
	* config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
	to a reg.


Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/config/rs6000/rs6000.md

Comment 8 Alan Modra 2008-02-14 00:18:57 UTC
fix applied