[uClibc-cvs] svn commit: trunk/uClibc/libc/stdio
vapier at uclibc.org
vapier at uclibc.org
Wed Mar 16 23:17:07 UTC 2005
Author: vapier
Date: 2005-03-16 16:17:06 -0700 (Wed, 16 Mar 2005)
New Revision: 10029
Log:
http://bugs.uclibc.org/view.php?id=165
d1mag writes:
Compilation of _fpmaxtostr.c generate an internal error by m68k-elf-gcc, and
this patch has been used in uClinux-dist to fix it.
Modified:
trunk/uClibc/libc/stdio/_fpmaxtostr.c
Changeset:
Modified: trunk/uClibc/libc/stdio/_fpmaxtostr.c
===================================================================
--- trunk/uClibc/libc/stdio/_fpmaxtostr.c 2005-03-16 23:13:30 UTC (rev 10028)
+++ trunk/uClibc/libc/stdio/_fpmaxtostr.c 2005-03-16 23:17:06 UTC (rev 10029)
@@ -205,7 +205,7 @@
__fpmax_t lower_bnd;
__fpmax_t upper_bnd = 1e9;
#endif /* __UCLIBC_HAS_HEXADECIMAL_FLOATS__ */
- uint_fast32_t digit_block;
+ volatile uint_fast32_t digit_block;
#ifdef __UCLIBC_HAS_HEXADECIMAL_FLOATS__
uint_fast32_t base = 10;
const __fpmax_t *power_table;
@@ -221,9 +221,9 @@
int nblk2; /* This does not need to be initialized. */
const char *ts; /* This does not need to be initialized. */
#endif /* __UCLIBC_HAS_GLIBC_DIGIT_GROUPING__ */
- int i, j;
+ volatile int i, j;
int round, o_exp;
- int exp, exp_neg;
+ volatile int exp, exp_neg;
int width, preci;
int cnt;
char *s;
More information about the uClibc-cvs
mailing list