This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/33755] Gcc 4.2.2 broken for mips linux kernel builds
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2007 20:32:36 -0000
- Subject: [Bug target/33755] Gcc 4.2.2 broken for mips linux kernel builds
- References: <bug-33755-7151@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from tbm at cyrius dot com 2007-10-12 20:32 -------
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
struct mtd_blktrans_ops
{
int (*readsect) (void);
int exiting;
};
static void do_blktrans_request (struct mtd_blktrans_ops *tr, long flags)
{
switch (flags & 1)
{
case 0:
if (tr->readsect ())
return;
case 1:
return;
default:
printk ("foo\n");
}
}
mtd_blktrans_thread (struct mtd_blktrans_ops *tr)
{
long flags;
while (!tr->exiting)
do_blktrans_request (tr, flags);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33755