This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: fix PR 10114
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Mon, 11 May 2009 17:09:20 +1000
- Subject: PATCH: fix PR 10114
This patch corrects PR 10114, using an alternative approach that does
not alter the code generated. Okay for mainline?
Thanks, Ben
2009-05-11 Ben Elliston <bje@au.ibm.com>
* config/soft-fp/op-common.h (_FP_DECL): Initialise X##_e with
itself to eliminate a compiler warning.
Index: config/soft-fp/op-common.h
===================================================================
--- config/soft-fp/op-common.h (revision 147352)
+++ config/soft-fp/op-common.h (working copy)
@@ -30,8 +30,8 @@
Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */
-#define _FP_DECL(wc, X) \
- _FP_I_TYPE X##_c __attribute__((unused)), X##_s, X##_e; \
+#define _FP_DECL(wc, X) \
+ _FP_I_TYPE X##_c __attribute__((unused)), X##_s, X##_e = X##_e; \
_FP_FRAC_DECL_##wc(X)
/*