[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r13157 - in /libdfp/trunk: ChangeLog printf_dfp.c sysdeps/powerpc/sysdep.h



Author: ryanarn
Date: Tue Mar 15 16:44:59 2011
New Revision: 13157

Log:
2011-03-15  Ryan S. Arnold  <rsa@xxxxxxxxxx>

	* printf_dfp.c (__printf_dfp): Finished cleaning up 'decimal'.
	* sysdeps/powerpc/sysdep.h: Updated copyright year.


Modified:
    libdfp/trunk/ChangeLog
    libdfp/trunk/printf_dfp.c
    libdfp/trunk/sysdeps/powerpc/sysdep.h

Modified: libdfp/trunk/ChangeLog
==============================================================================
--- libdfp/trunk/ChangeLog (original)
+++ libdfp/trunk/ChangeLog Tue Mar 15 16:44:59 2011
@@ -1,3 +1,32 @@
+2011-03-15  Ryan S. Arnold  <rsa@xxxxxxxxxx>
+
+	* printf_dfp.c (__printf_dfp): Finished cleaning up 'decimal'.
+	* sysdeps/powerpc/sysdep.h: Updated copyright year.
+
+2011-03-15  Ryan S. Arnold  <rsa@xxxxxxxxxx>
+
+	* README.maintainer: Updated.
+	* sysdeps/powerpc/powerpc32/power6/fpu/fixunstdsi.S (END): Fix
+	erroneous __dpd_fixunstssi to __dpd_fixunstdsi.
+	* sysdeps/powerpc/powerpc32/sysdep.h (PROF): Removed PROF macros.
+	(CALL_MCOUNT): Removed CALL_MCOUNT.
+	(ENTRY): Removed CALL_MCOUNT and C_SYMBOL_NAME from macro body.
+	Replaced C_LABEL with LABEL.
+	(C_TEXT): Removed macro as unnecessary.
+	* sysdeps/powerpc/sysdep.h (C_LABEL): Removed macro.
+	* include/libdfp-symbols.h (LABEL): New macro which replaces C_LABEL
+	by removing preceding underscore.
+	* printf_dfp.c (__dfp_ais): Return -1 if info->user doesn't match any of
+	the DFP mod_[H|D|DD] identifiers.
+	(__printf_dfp): Started cleaning up 'decimal' per Jakub Jelinek's
+	suggestion.  Fixed bug found by Jakub Jelinek where random garbage is
+	printed if the modifier is not H/D/DD.  The default was dropping into
+	the _Decimal32 case when it should have been returning -2.
+
+2010-02-08  Ryan S. Arnold  <rsa@xxxxxxxxxx>
+
+	* README.maintainer: Added todo for "Commit Access"
+
 2011-02-08  Ryan S. Arnold  <rsa@xxxxxxxxxx>
 
 	* README.maintainer: New file.

Modified: libdfp/trunk/printf_dfp.c
==============================================================================
--- libdfp/trunk/printf_dfp.c (original)
+++ libdfp/trunk/printf_dfp.c Tue Mar 15 16:44:59 2011
@@ -1,6 +1,6 @@
 /* Function definition to convert DFP values to strings
 
-   Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2009, 2010, 2011 Free Software Foundation, Inc.
 
    This file is part of the Decimal Floating Point C Library.
 
@@ -340,15 +340,11 @@
 	      const struct printf_info *info,
 	      const void *const *args)
 {
-	int wide = info->wide;
-	/* Counter for number of written characters.	*/
-	int done = 0;
-
-  /* Locale-dependent representation of decimal point.	*/
-
-#ifndef OPTION_EGLIBC_LOCALE_CODE
-  char decimald;
-#endif
+  int wide = info->wide;
+  /* Counter for number of written characters.  */
+  int done = 0;
+
+  /* Locale-dependent representation of decimal point.  */
   const char *decimal;
 
   union { const char *mb; unsigned int wc; } decimalwc;
@@ -383,11 +379,9 @@
   assert (decimalwc.wc != L'\0');
 #else
   /* Hard-code values from 'C' locale.  */
-//  decimald = ".";
   decimal = ".";
   decimalwc.wc = L'.';
 #endif
-
 
 #ifdef OPTION_EGLIBC_LOCALE_CODE
   if (info->group)

Modified: libdfp/trunk/sysdeps/powerpc/sysdep.h
==============================================================================
--- libdfp/trunk/sysdeps/powerpc/sysdep.h (original)
+++ libdfp/trunk/sysdeps/powerpc/sysdep.h Tue Mar 15 16:44:59 2011
@@ -1,6 +1,7 @@
 /* Constructs needed by libdfp PowerPC asm files.
 
-   Copyright (C) 1999, 2001, 2002, 2006, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2001, 2002, 2006, 2009,
+   2011 Free Software Foundation, Inc.
 
    This file is part of the Decimal Floating Point C Library.