This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix warnings from generic _FPU_GETCW
- From: David Miller <davem at davemloft dot net>
- To: cmetcalf at tilera dot com
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 05 Dec 2012 19:34:45 -0500 (EST)
- Subject: Re: [PATCH] Fix warnings from generic _FPU_GETCW
- References: <Pine.LNX.4.64.1212051521590.1819@digraph.polyomino.org.uk><1354734013-23111-1-git-send-email-cmetcalf@tilera.com>
From: Chris Metcalf <cmetcalf@tilera.com>
Date: Wed, 5 Dec 2012 14:00:13 -0500
> 2012-12-05 Chris Metcalf <cmetcalf@tilera.com>
>
> * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
> 0, not just to plain "0" as a statement.
> (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
> with cw.
>
> This change matches Joseph's recent MIPS-specific change to
> ports/sysdeps/mips/fpu_control.h. It seems that tile (and maybe ia64)
> are the only ports that use the sysdeps/generic header.
>
> This change removes a warning from math/setfpucw.c. The generated
> function is still a no-op since the compiler ignores the assignment
> to a variable that isn't used.
>
> OK to commit to main for 2.17?
This is ok.