From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27200 invoked by alias); 5 May 2009 09:02:29 -0000 Received: (qmail 24817 invoked by uid 48); 5 May 2009 09:02:12 -0000 Date: Tue, 05 May 2009 09:02:00 -0000 Message-ID: <20090505090212.24814.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/40022] 4.4 regression breaks "reply to all" in alpine In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" 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: 2009-05/txt/msg00295.txt.bz2 ------- Comment #6 from jakub at gcc dot gnu dot org 2009-05-05 09:02 ------- Reduced testcase: extern void abort (void); struct A { struct A *a; }; struct B { struct A *b; }; __attribute__((noinline)) struct A * foo (struct A *x) { asm volatile ("" : : "g" (x) : "memory"); return x; } __attribute__((noinline)) void bar (struct B *w, struct A *x, struct A *y, struct A *z) { struct A **c; c = &w->b; *c = foo (x); while (*c) c = &(*c)->a; *c = foo (y); while (*c) c = &(*c)->a; *c = foo (z); } struct B d; struct A e, f, g; int main (void) { f.a = &g; bar (&d, &e, &f, 0); if (d.b == 0 || d.b->a == 0 || d.b->a->a == 0 || d.b->a->a->a != 0) abort (); return 0; } Looking into it. -- jakub 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 |2009-05-05 09:02:11 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40022