diff options
author | unknown <knielsen@knielsen-hq.org> | 2012-02-06 13:30:39 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2012-02-06 13:30:39 +0100 |
commit | 9f9ecc0626b7ef0c54db0d43fd96e7193b907346 (patch) | |
tree | 51fb20940e57777efb9890bf13efe0ea1fa6c8e2 /strings | |
parent | 7232151193939fc9809e082d75a7cad57a76b29a (diff) | |
download | mariadb-git-9f9ecc0626b7ef0c54db0d43fd96e7193b907346.tar.gz |
MDEV-135: work-around a GCC bug seen on Debian 5 "lenny" 64-bit.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/decimal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/strings/decimal.c b/strings/decimal.c index c0021da6570..1a99816b914 100644 --- a/strings/decimal.c +++ b/strings/decimal.c @@ -2293,7 +2293,11 @@ static int do_div_mod(const decimal_t *from1, const decimal_t *from2, DBUG_ASSERT(buf0 < to->buf + to->len); *buf0=(dec1)guess; } +#ifdef WORKAROUND_GCC_4_3_2_BUG + dcarry= *(volatile dec1 *)start1; +#else dcarry= *start1; +#endif start1++; } if (mod) |