diff options
author | serg@serg.mylan <> | 2004-06-25 01:25:02 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2004-06-25 01:25:02 +0200 |
commit | b511996ff420991187ffeaee58071f235fa65bdf (patch) | |
tree | 82240e4f5af73264093de2d5b2290935609625c6 /sql/opt_range.cc | |
parent | 04bd8c9a44bac4a32f15aaff4eae1dec8c40b34e (diff) | |
download | mariadb-git-b511996ff420991187ffeaee58071f235fa65bdf.tar.gz |
workaround for gcc 2.95.3 bug
anybody knows how to distinguish 2.95.3 from 2.95.4 (which is ok) ?
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 804bb0a413c..e3a9ba4d01d 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -716,6 +716,9 @@ int SQL_SELECT::test_quick_select(THD *thd, key_map keys_to_use, key++,idx++) { ha_rows found_records; +#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ == 95) && defined(__OPTIMIZE__) + volatile // gcc 2.95.3 bug in -O3 mode +#endif double found_read_time; if (*key) { |