From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26236 invoked by alias); 20 Nov 2012 08:44:15 -0000 Received: (qmail 22632 invoked by uid 48); 20 Nov 2012 08:43:21 -0000 From: "markus at trippelsdorf dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/55396] -O2 -m32 -fno-omit-frame-pointer: internal compiler error: in check_rtl, at lra.c:2007 Date: Tue, 20 Nov 2012 08:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: markus at trippelsdorf dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg01893.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55396 Markus Trippelsdorf changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markus at trippelsdorf dot | |de --- Comment #1 from Markus Trippelsdorf 201= 2-11-20 08:43:17 UTC --- markus@x4 /tmp % cat test.i int a[0]; struct thread_struct { int sp; int ip; } ; struct task_struct { struct thread_struct thread; struct task_struct *curr; } b, h, *l; int c, d, e, f, g, m; void fn1 () { struct task_struct *i; int *j; int k; need_resched: k =3D 0; h =3D *(typeof (&b)) a[k]; j =3D 0; i =3D 0; ++*j; struct task_struct *n =3D i; asm ("popl %%ebp\n\t" : "=3Dc" (d), "=3Dd" (e), "=3DS" (f), "=3DD" (g):[next_sp] "mm" (n->thread.ip), [prev] "ad" (0)); goto need_resched; } markus@x4 /tmp % gcc -O2 -c -m32 -fno-omit-frame-pointer test.i test.i: In function =E2=80=98fn1=E2=80=99: test.i:31:1: error: unrecognizable insn: } ^ (insn 25 47 26 3 (parallel [ (set (reg:SI 2 cx [77]) (asm_operands:SI ("popl %%ebp ") ("=3Dc") 0 [ (mem:SI (plus:SI (reg:SI 2 cx [88]) (const_int 4 [0x4])) [2 MEM[(struct task_st= ruct *)0B].thread.ip+0 S4 A32]) (reg:SI 2 cx [88]) ] [ (asm_input:SI ("mm") (null):0) (asm_input:SI ("ad") (null):0) ] [] test.i:28)) (set (reg:SI 1 dx [78]) (asm_operands:SI ("popl %%ebp ") ("=3Dd") 1 [ (mem:SI (plus:SI (reg:SI 2 cx [88]) (const_int 4 [0x4])) [2 MEM[(struct task_st= ruct *)0B].thread.ip+0 S4 A32]) (reg:SI 2 cx [88]) ] [ (asm_input:SI ("mm") (null):0) (asm_input:SI ("ad") (null):0) ] [] test.i:28)) (set (reg:SI 4 si [79]) (asm_operands:SI ("popl %%ebp ") ("=3DS") 2 [ (mem:SI (plus:SI (reg:SI 2 cx [88]) (const_int 4 [0x4])) [2 MEM[(struct task_st= ruct *)0B].thread.ip+0 S4 A32]) (reg:SI 2 cx [88]) ] [ (asm_input:SI ("mm") (null):0) (asm_input:SI ("ad") (null):0) ] [] test.i:28)) (set (reg:SI 5 di [80]) (asm_operands:SI ("popl %%ebp ") ("=3DD") 3 [ (mem:SI (plus:SI (reg:SI 2 cx [88]) (const_int 4 [0x4])) [2 MEM[(struct task_st= ruct *)0B].thread.ip+0 S4 A32]) (reg:SI 2 cx [88]) ] [ (asm_input:SI ("mm") (null):0) (asm_input:SI ("ad") (null):0) ] [] test.i:28)) (clobber (reg:QI 18 fpsr)) (clobber (reg:QI 17 flags)) ]) test.i:28 -1 (expr_list:REG_DEAD (reg:SI 2 cx [88]) (nil))) test.i:31:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:413 0x780d4a _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /home/markus/gcc/gcc/rtl-error.c:110 0x780d79 _fatal_insn_not_found(rtx_def const*, char const*, int, char const= *) /home/markus/gcc/gcc/rtl-error.c:118 0x73bfbb reload_cse_simplify_operands /home/markus/gcc/gcc/postreload.c:413 0x73d52c reload_cse_simplify /home/markus/gcc/gcc/postreload.c:183 0x73d52c reload_cse_regs_1 /home/markus/gcc/gcc/postreload.c:222 0x73d98b reload_cse_regs /home/markus/gcc/gcc/postreload.c:70 0x73d98b rest_of_handle_postreload /home/markus/gcc/gcc/postreload.c:2289 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.