| 1 |
Modify the optimisation flags for FastFixedDtoa. |
| 2 |
This fixes a non-determinism issue in the asm produced for |
| 3 |
this function when cross-compiling on x86_64 and aarch64 for |
| 4 |
the arm-linux-gnueabihf HOST. |
| 5 |
|
| 6 |
--- a/qtbase/src/3rdparty/double-conversion/double-conversion/fixed-dtoa.h |
| 7 |
+++ b/qtbase/src/3rdparty/double-conversion/double-conversion/fixed-dtoa.h |
| 8 |
@@ -48,9 +48,12 @@ namespace double_conversion { |
| 9 |
// |
| 10 |
// This method only works for some parameters. If it can't handle the input it |
| 11 |
// returns false. The output is null-terminated when the function succeeds. |
| 12 |
+#pragma GCC push_options |
| 13 |
+#pragma GCC optimize ("-O1") |
| 14 |
bool FastFixedDtoa(double v, int fractional_count, |
| 15 |
Vector<char> buffer, int* length, int* decimal_point); |
| 16 |
|
| 17 |
+#pragma GCC pop_options |
| 18 |
} // namespace double_conversion |
| 19 |
|
| 20 |
#endif // DOUBLE_CONVERSION_FIXED_DTOA_H_ |