Re: curious compiler-warning

From: david mosberger <dmosberger_at_gmail.com>
Date: 2005-07-12 14:17:40
Thanks for creating the bug-report the analysis --- interesting read!

  --david

On 11 Jul 2005 18:56:07 -0700, James E Wilson <wilson@tuliptree.org> wrote:
> On Mon, 2005-07-11 at 16:00, david mosberger wrote:
> > arch/ia64/kernel/time.c:198: warning: format '%u' expects type
> > 'unsigned int', but argument 5 has type 'unsigned int'
> > Argument 5 here is a bit field declared as:
> >   unsigned long field : 32;
> 
> This looks like a bug to me.  There have been some significant changes
> to the bit-field support over the last few years.  There were some cases
> where we were non-conforming with respect to C89: getting sign/zero
> extension wrong, performing operations with the wrong precision.  Plus
> some changes were needed for C99 support.  It looks like these changes
> have accidentally broken the -Wformat support.
> 
> Just taking a quick look, I don't see any existing bug report for this,
> so I created a new one.  This is now FSF gcc bug 22421.
>     http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22421
> 
> 
> 
>
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Jul 12 00:18:42 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST