public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/42536] [4.4/4.5 regression] ICE in spill_failure, at reload1.c:2141 Date: Sat, 02 Jan 2010 16:44:00 -0000 [thread overview] Message-ID: <20100102164429.10348.qmail@sourceware.org> (raw) In-Reply-To: <bug-42536-5724@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from jakub at gcc dot gnu dot org 2010-01-02 16:44 ------- Reduced testcase: /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */ /* { dg-options "-O2 -fno-gcse" } */ struct C; struct B { struct C *b; }; struct C { void (*baz) (struct B *, void *, int); }; typedef union { int f; void *e; } D; struct E { struct B *e; }; struct A { struct E *a1; D *a2; D *a3; }; void foo (long *x, long y) { *(long long *) x = y; } extern long fn1 (D); extern void fn2 (void); void _bar (struct A *x) { register int a asm ("esi"); register D *volatile b asm ("edi"); register int c asm ("ebx"); void *d; asm volatile ("" : "=r" (a), "=r" (b), "=r" (c) : : "memory"); if ((d = b[-2].e) != 0 && b [-2].e < d) { foo (&(((long *) d) + 1) [b[0].f], fn1 (b[-1])); x->a2 = (D *) c; x->a3 = b; fn2 (); } x->a1->e->b->baz (x->a1->e, (void *) (long) a, 1); } Wonder why RA doesn't try to force the memory address into register, that would free up one register from the 4 otherwise needed (2 for the address, 2 for DImode value being stored into the memory). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42536
next prev parent reply other threads:[~2010-01-02 16:44 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-12-29 12:41 [Bug target/42536] New: " debian-gcc at lists dot debian dot org 2009-12-29 12:41 ` [Bug target/42536] " debian-gcc at lists dot debian dot org 2009-12-31 16:56 ` rguenth at gcc dot gnu dot org 2010-01-02 14:30 ` jakub at gcc dot gnu dot org 2010-01-02 16:44 ` jakub at gcc dot gnu dot org [this message] 2010-01-07 14:45 ` rguenth at gcc dot gnu dot org 2010-01-21 13:15 ` jakub at gcc dot gnu dot org 2010-03-20 13:04 ` steven at gcc dot gnu dot org 2010-04-30 8:58 ` [Bug target/42536] [4.4/4.5/4.6 " jakub at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100102164429.10348.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).