linux-mips
[Top] [All Lists]

Re: Compilation error on linux-mips git

To: Ganesan Ramalingam <ganesan18@gmail.com>
Subject: Re: Compilation error on linux-mips git
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 27 Jul 2011 21:27:33 +0100
Cc: linux-kernel@vger.kernel.org, David Daney <david.daney@cavium.com>, linux-mips@linux-mips.org
In-reply-to: <CAJ4A=e5bvq-RQ__ktbJ2u0eYJkeNNJOcS9nfBOdEJZrwasty_A@mail.gmail.com>
References: <CAJ4A=e4dvK3RVCdha8f_Vs6kbc1cmfzwdAPtUe3+3AUuVddgRA@mail.gmail.com> <20110727134737.GA8930@linux-mips.org> <CAJ4A=e5bvq-RQ__ktbJ2u0eYJkeNNJOcS9nfBOdEJZrwasty_A@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
On Wed, Jul 27, 2011 at 07:40:02PM +0530, Ganesan Ramalingam wrote:
> Date:   Wed, 27 Jul 2011 19:40:02 +0530
> From: Ganesan Ramalingam <ganesan18@gmail.com>
> To: Ralf Baechle <ralf@linux-mips.org>
> Cc: linux-kernel@vger.kernel.org, David Daney <david.daney@cavium.com>
> Subject: Re: Compilation error on linux-mips git
> Content-Type: multipart/alternative; boundary=0023545bcf24e7046c04a90d9b5b
> 
> Got the error with below version of compiler:
> 
> Target: mips64-unknown-linux-gnu
> Configured with: ../gcc-4.2.2/configure
> --prefix=/home/rpmbuilder/CROSS_TOOLCHAIN
> --with-local-prefix=/home/rpmbuilder/CROSS_TOOLCHAIN/mips64-unknown-linux-gnu
> --target=mips64-unknown-linux-gnu --host=x86-cross-linux-gnu --disable-nls
> --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --enable-c99
> --enable-long-long --enable-threads=posix --with-arch=xlr --with-float=soft
> --with-tune=xlr
> --with-sysroot=/home/rpmbuilder/CROSS_TOOLCHAIN/mips64-unknown-linux-gnu
> --with-headers=/home/rpmbuilder/CROSS_TOOLCHAIN/mips64-unknown-linux-gnu/usr/include
> Thread model: posix
> gcc version 4.2.2

And the warning is correct; I don't know why later compilers don't spot it.
It's not like the code has any complex control flow.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Compilation error on linux-mips git, Ralf Baechle <=