[Top] [All Lists]

Re: [PATCH 3/3] signal.c: fix gcc warning on 32 bits kernel

To: "Atsushi Nemoto" <>
Subject: Re: [PATCH 3/3] signal.c: fix gcc warning on 32 bits kernel
From: "Franck Bui-Huu" <>
Date: Fri, 9 Feb 2007 17:34:16 +0100
Domainkey-signature: a=rsa-sha1; c=nofws;; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dvYMMz8Lu2+p0OVTasPFgyb02ZGFzw/DQw+HJLumNqLMDc+i/aD3ztNIIPcpJXnXi6r4Lq6XsOrvu2Bm9O+wP4PwwDp+VuPtJUO9MdXmGlnUmBtdA2Fz9GbACi+S7TqLNVjPBhtYQuEKhL7x9BClZgylvHYQooKD3gs9HuqdP70=
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
On 2/9/07, Atsushi Nemoto <> wrote:
On Fri,  9 Feb 2007 16:07:38 +0100, Franck Bui-Huu <> 
> = (__sighandler_t) __gu_tmp;
> Here we try to cast an 'unsigned long long' into a 32 bits pointer and
> that's the reason of the warning.

This line is never executed on 32bit kernel and gcc optimize out.  On

yes I agree but it seems that gcc compiles this line before optimizing out...

I think this is a problem of __get_user() implementation or gcc
itself.  Though I can not find better solution yet, hacking the caller
to avoid the warning would not be right things to to.

I agree too but I haven't found something else.

BTW, my version of gcc is: mipsel-linux-gcc (GCC) 3.4.4 mipssde-6.05.00-20061023


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