From: Rust Maintainers Date: Wed, 9 Aug 2017 02:49:55 +0000 (+0100) Subject: gcc-4.8-aarch64-ice X-Git-Tag: archive/raspbian/1.19.0+dfsg3-4+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=99b04a15963d9ea864bd97a0b6d7f4850cded66c;p=rustc.git gcc-4.8-aarch64-ice Gbp-Pq: Name gcc-4.8-aarch64-ice.diff --- diff --git a/src/compiler-rt/lib/builtins/trunctfdf2.c b/src/compiler-rt/lib/builtins/trunctfdf2.c index 741a71b33c..059f8316b9 100644 --- a/src/compiler-rt/lib/builtins/trunctfdf2.c +++ b/src/compiler-rt/lib/builtins/trunctfdf2.c @@ -7,6 +7,12 @@ // //===----------------------------------------------------------------------===// +#if defined(__aarch64__) && (__GNUC__ <= 4) && (__GNUC_MINOR__ <= 8) +// work around https://launchpad.net/bugs/1667761 +#pragma GCC push_options +#pragma GCC optimize "O1" +#endif + #define QUAD_PRECISION #include "fp_lib.h" @@ -20,3 +26,7 @@ COMPILER_RT_ABI double __trunctfdf2(long double a) { } #endif + +#if defined(__aarch64__) && (__GNUC__ <= 4) && (__GNUC_MINOR__ <= 8) +#pragma GCC pop_options +#endif