Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
9 software/include.mak
@@ -1,15 +1,16 @@
# Mico32 toolchain
#
CROSS_COMPILER=lm32-rtems4.11-
+CLANG=clang -ccc-host-triple mico32-generic-generic -ccc-gcc-name $(CROSS_COMPILER)gcc
-CC_normal := $(CROSS_COMPILER)gcc
+CC_normal := $(CLANG)
AR_normal := $(CROSS_COMPILER)ar
AS_normal := $(CROSS_COMPILER)as
LD_normal := $(CROSS_COMPILER)ld
OBJCOPY_normal := $(CROSS_COMPILER)objcopy
RANLIB_normal := $(CROSS_COMPILER)ranlib
-CC_quiet = @echo " CC " $@ && $(CROSS_COMPILER)gcc
+CC_quiet = @echo " CC " $@ && $(CLANG)
AR_quiet = @echo " AR " $@ && $(CROSS_COMPILER)ar
AS_quiet = @echo " AS " $@ && $(CROSS_COMPILER)as
LD_quiet = @echo " LD " $@ && $(CROSS_COMPILER)ld
@@ -39,9 +40,7 @@ INCLUDES = $(INCLUDES_NOLIBC) -I$(M2DIR)/software/include -I$(M2DIR)/tools
ASFLAGS = $(INCLUDES) -nostdinc
# later: -Wmissing-prototypes
CFLAGS = -O9 -Wall -Wstrict-prototypes -Wold-style-definition -Wshadow \
- -mbarrel-shift-enabled -mmultiply-enabled -mdivide-enabled \
- -msign-extend-enabled -fno-builtin -fsigned-char \
- -fsingle-precision-constant $(INCLUDES)
+ -fsigned-char $(INCLUDES)
LDFLAGS = -nostdlib -nodefaultlibs
# compile and generate dependencies, based on
View
4 software/include/base/stdlib.h
@@ -27,8 +27,8 @@
#define PRINTF_SPECIAL 32 /* 0x */
#define PRINTF_LARGE 64 /* use 'ABCDEF' instead of 'abcdef' */
-typedef int size_t;
-typedef int ptrdiff_t;
+typedef unsigned long size_t;
+typedef long ptrdiff_t;
#define NULL ((void *)0)
View
10 software/libbase/softfloat-glue.c
@@ -123,3 +123,13 @@ unsigned int __fixunssfsi(float32 x)
return float32_to_int32_round_to_zero(x); // XXX
}
+int __unordsf2(float32 a, float32 b)
+{
+ /*
+ * The comparison is unordered if either input is a NaN.
+ * Test for this by comparing each operand with itself.
+ * We must perform both comparisons to correctly check for
+ * signalling NaNs.
+ */
+ return 1 ^ (float32_eq(a, a) & float32_eq(b, b));
+}

No commit comments for this range

Something went wrong with that request. Please try again.