This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)
 
 /*



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]