From: Gianni Tedesco Subject: Re: [PATCH]: minios: eliminate compile warning - use of uninitialised variable Date: Fri, 7 Jan 2011 17:42:22 +0000 Message-ID: <1294422142.12018.99.camel@qabil.uk.xensource.com> References: <1294419169.12018.79.camel@qabil.uk.xensource.com> <20110107165822.GX5820@const.bordeaux.inria.fr> <1294420919.12018.89.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1294420919.12018.89.camel@qabil.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault Cc: Xen Devel , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2011-01-07 at 17:21 +0000, Gianni Tedesco wrote: > On Fri, 2011-01-07 at 16:58 +0000, Samuel Thibault wrote: > > Gianni Tedesco, le Fri 07 Jan 2011 16:52:49 +0000, a =C3=A9crit : > > > I'm not sure if this is a legit catch by gcc or a false positive du= e to > > > extra cleverness in gcc-4.5. Either way it causes the build to barf= . > >=20 > > It seems a false positive to me. What is the warning message? Actually looks like these are incorrect when compiled 64bit and not needed anyway. Following patch does the job. diff -r 4695fd70077d extras/mini-os/lib/math.c --- a/extras/mini-os/lib/math.c Fri Jan 07 17:13:53 2011 +0000 +++ b/extras/mini-os/lib/math.c Fri Jan 07 17:40:20 2011 +0000 @@ -59,9 +59,9 @@ #include #include =20 - /* On ia64 these functions lead to crashes. These are replaced by + /* These functions are incorrect on 64bit. On ia64 they are replaced by * assembler functions. */ -#if !defined(__ia64__) +#if !defined(__ia64__) && !defined(__x86_64__) =20 /* * Depending on the desired operation, we view a `long long' (aka quad_t= ) in