From: Richard Henderson Date: Tue, 28 Oct 2014 20:26:24 +0000 (-0700) Subject: longlong.h: Disable alpha umul_ppmm for old g++ X-Git-Tag: glibc-2.23~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f49b7c0200e745c5f0d3e9245a6e4590bd57b1d;p=thirdparty%2Fglibc.git longlong.h: Disable alpha umul_ppmm for old g++ Causes "unexpected AST of kind MULT_HIGHPART" error with bootstrap from gcc 4.8. --- diff --git a/ChangeLog b/ChangeLog index a3c4d8ef123..ce42df8ce68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-01-07 Richard Henderson + + * longlong.h [__alpha] (umul_ppmm): Disable for c++. + 2016-01-07 Mike Frysinger * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change diff --git a/stdlib/longlong.h b/stdlib/longlong.h index 650ef3173fe..1bc3e659d0e 100644 --- a/stdlib/longlong.h +++ b/stdlib/longlong.h @@ -139,6 +139,9 @@ extern const UQItype __clz_tab[256] attribute_hidden; #endif /* __aarch64__ */ #if defined (__alpha) && W_TYPE_SIZE == 64 +/* There is a bug in g++ before version 5 that + errors on __builtin_alpha_umulh. */ +#if !defined(__cplusplus) || __GNUC__ >= 5 #define umul_ppmm(ph, pl, m0, m1) \ do { \ UDItype __m0 = (m0), __m1 = (m1); \ @@ -146,6 +149,7 @@ extern const UQItype __clz_tab[256] attribute_hidden; (pl) = __m0 * __m1; \ } while (0) #define UMUL_TIME 46 +#endif /* !c++ */ #ifndef LONGLONG_STANDALONE #define udiv_qrnnd(q, r, n1, n0, d) \ do { UDItype __r; \