From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 27 Jul 2011 22:27:50 +0200 (CEST) Received: from h5.dl5rb.org.uk ([81.2.74.5]:52480 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S1491158Ab1G0U1q (ORCPT ); Wed, 27 Jul 2011 22:27:46 +0200 Received: from duck.linux-mips.net (duck.linux-mips.net [127.0.0.1]) by duck.linux-mips.net (8.14.4/8.14.4) with ESMTP id p6RKRYVa013231; Wed, 27 Jul 2011 21:27:34 +0100 Received: (from ralf@localhost) by duck.linux-mips.net (8.14.4/8.14.4/Submit) id p6RKRXDe013228; Wed, 27 Jul 2011 21:27:33 +0100 Date: Wed, 27 Jul 2011 21:27:33 +0100 From: Ralf Baechle To: Ganesan Ramalingam Cc: linux-kernel@vger.kernel.org, David Daney , linux-mips@linux-mips.org Subject: Re: Compilation error on linux-mips git Message-ID: <20110727202733.GA10842@linux-mips.org> References: <20110727134737.GA8930@linux-mips.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-archive-position: 30750 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips Return-Path: X-Keywords: X-UID: 20121 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 > To: Ralf Baechle > Cc: linux-kernel@vger.kernel.org, David Daney > 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