Commit 4099d58c authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Disable compiler bug workarounds when using latest compiler version

Detail:
  softfloat/softfloat-macros, softfloat/c/softfloat - The latest version of norcroft fixes the compiler bugs that have workarounds for here. So, insert a version check so that the workarounds are only used on old compiler versions.
Admin:
  Tested on Raspberry Pi
  VFP build of testfloat passes all tests at -level 2


Version 0.08. Tagged as 'VFPSupport-0_08'
parent b2a80c7b
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "0.07"
Module_Version SETA 7
Module_MajorVersion SETS "0.08"
Module_Version SETA 8
Module_MinorVersion SETS ""
Module_Date SETS "25 Oct 2014"
Module_ApplicationDate SETS "25-Oct-14"
Module_Date SETS "02 Nov 2014"
Module_ApplicationDate SETS "02-Nov-14"
Module_ComponentName SETS "VFPSupport"
Module_ComponentPath SETS "mixed/RiscOS/Sources/HWSupport/VFPSupport"
Module_FullVersion SETS "0.07"
Module_HelpVersion SETS "0.07 (25 Oct 2014)"
Module_FullVersion SETS "0.08"
Module_HelpVersion SETS "0.08 (02 Nov 2014)"
END
/* (0.07)
/* (0.08)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.07
#define Module_MajorVersion_CMHG 0.08
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 25 Oct 2014
#define Module_Date_CMHG 02 Nov 2014
#define Module_MajorVersion "0.07"
#define Module_Version 7
#define Module_MajorVersion "0.08"
#define Module_Version 8
#define Module_MinorVersion ""
#define Module_Date "25 Oct 2014"
#define Module_Date "02 Nov 2014"
#define Module_ApplicationDate "25-Oct-14"
#define Module_ApplicationDate "02-Nov-14"
#define Module_ComponentName "VFPSupport"
#define Module_ComponentPath "mixed/RiscOS/Sources/HWSupport/VFPSupport"
#define Module_FullVersion "0.07"
#define Module_HelpVersion "0.07 (25 Oct 2014)"
#define Module_LibraryVersionInfo "0:7"
#define Module_FullVersion "0.08"
#define Module_HelpVersion "0.08 (02 Nov 2014)"
#define Module_LibraryVersionInfo "0:8"
......@@ -1968,7 +1968,9 @@ float32 float32_rem( float32 a, float32 b )
/* Disable peephole optimisation as a workaround for a bug in CC 5.69 which
causes the inner while() loop to update 'rem' incorrectly */
#if defined(__CC_NORCROFT) && (__CC_NORCROFT_VERSION < 571)
#pragma -q8
#endif
float32 float32_sqrt( float32 a )
{
......@@ -2018,7 +2020,9 @@ float32 float32_sqrt( float32 a )
}
#if defined(__CC_NORCROFT) && (__CC_NORCROFT_VERSION < 571)
#pragma -q0
#endif
/*----------------------------------------------------------------------------
| Returns 1 if the single-precision floating-point value `a' is equal to
......
......@@ -548,7 +548,9 @@ INLINE void
/* Disable CSE as a workaround for an optimisation bug in CC 5.69 which
causes a value to be read from unallocated stack memory */
#if defined(__CC_NORCROFT) && (__CC_NORCROFT_VERSION < 571)
#pragma -z0
#endif
static bits64 estimateDiv128To64( bits64 a0, bits64 a1, bits64 b )
{
......@@ -572,7 +574,9 @@ static bits64 estimateDiv128To64( bits64 a0, bits64 a1, bits64 b )
}
#if defined(__CC_NORCROFT) && (__CC_NORCROFT_VERSION < 571)
#pragma -z1
#endif
/*----------------------------------------------------------------------------
| Returns an approximation to the square root of the 32-bit significand given
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment