Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9f9ecc06
Commit
9f9ecc06
authored
Feb 06, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-135: work-around a GCC bug seen on Debian 5 "lenny" 64-bit.
parent
72321511
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
debian/dist/Debian/rules
debian/dist/Debian/rules
+1
-1
sql/item_sum.cc
sql/item_sum.cc
+1
-1
strings/decimal.c
strings/decimal.c
+4
-0
No files found.
debian/dist/Debian/rules
View file @
9f9ecc06
...
...
@@ -66,7 +66,7 @@ endif
( test -d $(builddir) || mkdir $(builddir) ) && cd $(builddir) && \
sh -c 'PATH=$${MYSQL_BUILD_PATH:-"/bin:/usr/bin:/usr/local/bin"} \
CC=$${MYSQL_BUILD_CC:-gcc} \
CFLAGS=$${MYSQL_BUILD_CFLAGS:-"-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wno-uninitialized"} \
CFLAGS=$${MYSQL_BUILD_CFLAGS:-"-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wno-uninitialized
$$(case `lsb_release -sc` in (lenny) echo -DWORKAROUND_GCC_4_3_2_BUG ;; esac)
"} \
CXX=$${MYSQL_BUILD_CXX:-g++} \
CXXFLAGS=$${MYSQL_BUILD_CXXFLAGS:-"-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wno-uninitialized"} \
cmake .. \
...
...
sql/item_sum.cc
View file @
9f9ecc06
...
...
@@ -1647,7 +1647,7 @@ double Item_sum_avg::val_real()
my_decimal
*
Item_sum_avg
::
val_decimal
(
my_decimal
*
val
)
{
my_decimal
sum_buff
,
cnt
;
my_decimal
cnt
;
const
my_decimal
*
sum_dec
;
DBUG_ASSERT
(
fixed
==
1
);
if
(
aggr
)
...
...
strings/decimal.c
View file @
9f9ecc06
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment