[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140402.084713.204716153605145333.davem@davemloft.net>
Date: Wed, 02 Apr 2014 08:47:13 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: ast@...mgrid.com
Cc: nobuhiro.iwamatsu.yj@...esas.com, dborkman@...hat.com,
lethal@...ux-sh.org, fengguang.wu@...el.com,
linux-sh@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] sh: add missing fpscr_values
From: Alexei Starovoitov <ast@...mgrid.com>
Date: Tue, 1 Apr 2014 19:54:04 -0700
> GCC on SuperH for the following program:
> int foo(int i)
> {
> static const void *table[2] = {
> [0] = &&label1,
> [1] = &&label2,
> };
> goto *table[i & 1];
>
> label1:
> return 1;
> label2:
> return 2;
> }
> generates code:
> mov.l .L9,r1
> mov #1,r0
> rts
> lds.l @r1+,fpscr
> .L9:
> .long __fpscr_values+4
>
> so kernel has to provide body of fpscr_values just like glibc does
>
> Fixes: bd4cf0ed331a ("net: filter: rework/optimize internal BPF interpreter's instruction set")
> Reported-by: Fengguang Wu <fengguang.wu@...el.com>
> Signed-off-by: Alexei Starovoitov <ast@...mgrid.com>
You guys really need to just fix the compiler, sorry.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists