Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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

No commit comments for this range

Something went wrong with that request. Please try again.