linux-mips
[Top] [All Lists]

Re: mips: math-emu: Fix compilation error ieee754.c

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: mips: math-emu: Fix compilation error ieee754.c
From: David Rientjes <rientjes@google.com>
Date: Wed, 11 Jun 2014 14:32:45 -0700 (PDT)
Cc: Eunbong Song <eunb.song@samsung.com>, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; bh=gEFZB8p7M7RDxv6CMZt7RQ69h0EdE8/UOfTKCq9olU0=; b=OWVLsUnkGyxItVeKcEHn10yb84lc2uBqvvi7ePUSogk6avwvjTvDV3ekRVR7TgYbuO sCnPffvpITV9h5lT0sYKTAClo1MHLCgsJ2In9tEiZ53ORd124FLtkTuk/c0CM2i9RsMI 4Sw0y+aRL0KeI1eNfh+uySMehP7MzfdXEa35Nvh2gb627H3Hfdx616fOz9gQ5XOb3u0p bPOZYapAX0fPWdlz9E27dSZETzYEC2Td+qXY7fage31FYfcWNnlnqmsrv/Oh8rSroDKX yldMsA+Wo+21+k7VvMng/Kk7aK8jeQCl92AFmSf1Qm1TJGMhPXZBVEAE+tr5nUTCQdhC UnUA==
In-reply-to: <20140611171000.GD26335@linux-mips.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <2463243.264261402478691777.JavaMail.weblogic@epml26> <20140611171000.GD26335@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Alpine 2.02 (DEB 1266 2009-07-14)
On Wed, 11 Jun 2014, Ralf Baechle wrote:

> On Wed, Jun 11, 2014 at 09:24:51AM +0000, Eunbong Song wrote:
> 
> > ieee754dp has bitfield member in struct without name. And this
> > cause compilation error. This patch removes struct in ieee754dp
> > declaration. So compilation error is fixed.
> > Signed-off-by: Eunbong Song <eunb.song@samsung.com>
> 
> What gcc version are you using?
> 

make arch/mips/math-emu/ieee754.o for mips defconfig triggers the 
following on linux-next 30 times:

arch/mips/math-emu/ieee754.c:45:2: error: unknown field 'sign' specified in 
initializer
arch/mips/math-emu/ieee754.c:45:2: warning: missing braces around initializer
arch/mips/math-emu/ieee754.c:45:2: warning: (near initialization for 
'__ieee754dp_spcvals[0].<anonymous>')
arch/mips/math-emu/ieee754.c:45:2: error: unknown field 'bexp' specified in 
initializer
arch/mips/math-emu/ieee754.c:45:2: warning: excess elements in union initializer
arch/mips/math-emu/ieee754.c:45:2: warning: (near initialization for 
'__ieee754dp_spcvals[0]')
arch/mips/math-emu/ieee754.c:45:2: error: unknown field 'mant' specified in 
initializer
arch/mips/math-emu/ieee754.c:45:2: warning: excess elements in union initializer
arch/mips/math-emu/ieee754.c:45:2: warning: (near initialization for 
'__ieee754dp_spcvals[0]')

I'm using gcc 4.5.1 for mips.  The patch makes all members part of the 
union so it's probably not what you want to fix it, though.

<Prev in Thread] Current Thread [Next in Thread>