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 other/42715] [4.5 Regression] output_operand: invalid expression as operand Date: Wed, 13 Jan 2010 11:57:00 -0000 [thread overview] Message-ID: <20100113115654.3492.qmail@sourceware.org> (raw) In-Reply-To: <bug-42715-11764@http.gcc.gnu.org/bugzilla/> ------- Comment #4 from jakub at gcc dot gnu dot org 2010-01-13 11:56 ------- More reduced testcase (-m32 -g -O2 -fpic): struct A { unsigned a1; char a2[15]; }; struct B { long b1; unsigned char b2; long b3; }; struct C { void *c1; unsigned c2; unsigned c3; }; static struct A v1; struct A *const v2 = &v1; static inline int foo (void) { int *v; __asm__ __volatile__ ("" : "=r" (v)); return v[1]; } static void bar (struct C *x) { if (x->c2 == x->c3 && x->c1) f1 (foo (), x->c1, x->c3 * sizeof (x->c1[0])); } void baz (struct B *y) { int i; const char *j; char *k; char x[64]; for (i = 0; i < sizeof (struct B); i++, y) { switch (y->b2) { case 0x20: if (__builtin_strchr (j, '=')) continue; } switch (y->b2) { case 0x80: bar (&x); f2 (y->b3); case 0x2e: case 0x4e: break; default: if (v2->a1) f2 (y->b2); } k[0] = '\0'; if (v2->a1) f2 (y->b1); } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42715
next prev parent reply other threads:[~2010-01-13 11:57 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-01-12 17:07 [Bug other/42715] New: " doko at ubuntu dot com 2010-01-12 17:07 ` [Bug other/42715] " doko at ubuntu dot com 2010-01-12 23:35 ` hjl dot tools at gmail dot com 2010-01-13 9:52 ` rguenth at gcc dot gnu dot org 2010-01-13 11:12 ` rguenth at gcc dot gnu dot org 2010-01-13 11:57 ` jakub at gcc dot gnu dot org [this message] 2010-01-13 12:10 ` jakub at gcc dot gnu dot org 2010-01-14 16:40 ` rguenth at gcc dot gnu dot org 2010-01-19 8:45 ` aoliva at gcc dot gnu dot org 2010-01-21 0:43 ` jakub at gcc dot gnu dot org 2010-01-22 17:03 ` jakub at gcc dot gnu dot org 2010-02-07 4:48 ` hjl 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=20100113115654.3492.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).