softfloat: Reinstate accidentally disabled target-specific NaN handling
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 26 Sep 2011 15:56:55 +0000 (16:56 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 1 Oct 2011 06:19:07 +0000 (06:19 +0000)
Include config.h in softfloat.c, so that the target specific ifdefs in
softfloat-specialize.h are evaluated correctly. This was accidentally
broken in commit 789ec7ce2 when config-target.h was removed from
softfloat.h, and means that most targets will have been returning the
wrong results for calculations involving NaNs.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
fpu/softfloat.c

index 2b20085..3aafa81 100644 (file)
@@ -35,6 +35,11 @@ these four paragraphs for those parts of this code that are retained.
 
 =============================================================================*/
 
+/* softfloat (and in particular the code in softfloat-specialize.h) is
+ * target-dependent and needs the TARGET_* macros.
+ */
+#include "config.h"
+
 #include "softfloat.h"
 
 /*----------------------------------------------------------------------------