Accept correct double conversion unconditionally for GHS toolchain.

GHS floating-point libraries always handles double conversion properly.

Change-Id: Ic3c6c83e56fa0c7d29707b3939b6e7af38df0f3d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
bb10
Rolland Dudemaine 2016-04-01 08:07:59 +02:00
parent 35fdf91f40
commit d67327282f
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@
#endif // _WIN32
#elif defined(WINCE) || defined(_WIN32_WCE)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(__ghs)
// Green Hills toolchain uses a 64bit wide floating point stack
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#else
#error Target architecture was not detected as supported by Double-Conversion.
#endif