X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fsorter%2Fs-multiway.h;h=83e928f2621c6a8ba07adeb244b0b3ad63a5a5e3;hb=6bd2ff95b10c8c409eb178684294f1d17d79265b;hp=9295396f0c16ce3e428ac607c60b371684481b0f;hpb=14e105850c5d3451a44fc50f2814683c0df3ae1b;p=libucw.git diff --git a/lib/sorter/s-multiway.h b/lib/sorter/s-multiway.h index 9295396f..83e928f2 100644 --- a/lib/sorter/s-multiway.h +++ b/lib/sorter/s-multiway.h @@ -44,15 +44,12 @@ static inline void P(update_tree)(P(key) *keys, P(mwt) *tree, uns i) * the tree is the same, the actual key value can differ. */ } -#if defined(__GNUC__) && (__GNUC__ * 1000 + __GNUC_MINOR__ < 4002) /* - * This function sometimes triggers optimizer bugs in GCC 4.1.1 and - * possibly also earlier versions, leading to an assumption that tree[1] - * does not change during this function. We add an explicit memory barrier - * as a work-around. Ugh. + * This function sometimes triggers optimizer bugs in GCC versions up to 4.2.1, + * leading to an assumption that tree[1] does not change during this function. + * We add an explicit memory barrier as a work-around. Ugh. See GCC Bug #33262. */ asm volatile ("" : : : "memory"); -#endif } static inline void P(set_tree)(P(key) *keys, P(mwt) *tree, uns i, int val)