Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

software: enable -Wmissing-prototypes

  • Loading branch information...
commit fb22edc06af0e60a617b58dbc88b8658f47b20d9 1 parent 63f6dec
Sébastien Bourdeauducq authored February 07, 2012
1  software/bios/isr.c
@@ -20,6 +20,7 @@
20 20
 #include <irq.h>
21 21
 #include <uart.h>
22 22
 
  23
+void isr(void);
23 24
 void isr(void)
24 25
 {
25 26
 	unsigned int irqs;
3  software/include.mak
@@ -38,9 +38,8 @@ endif
38 38
 INCLUDES_NOLIBC ?= -nostdinc -I$(M2DIR)/software/include/base
39 39
 INCLUDES = $(INCLUDES_NOLIBC) -I$(M2DIR)/software/include -I$(M2DIR)/tools
40 40
 ASFLAGS = $(INCLUDES) -nostdinc
41  
-# later: -Wmissing-prototypes
42 41
 CFLAGS = -O9 -Wall -Wstrict-prototypes -Wold-style-definition -Wshadow \
43  
-	 -fsigned-char $(INCLUDES)
  42
+	 -Wmissing-prototypes -fsigned-char $(INCLUDES)
44 43
 LDFLAGS = -nostdlib -nodefaultlibs
45 44
 
46 45
 # compile and generate dependencies, based on
2  software/libbase/divsi3.c
@@ -19,6 +19,7 @@
19 19
 
20 20
 #define exitdiv(sign, res) if (sign) { res = - res;} return res;
21 21
 
  22
+long __divsi3 (long numerator, long denominator);
22 23
 long __divsi3 (long numerator, long denominator)
23 24
 {
24 25
 	int sign;
@@ -30,6 +31,7 @@ long __divsi3 (long numerator, long denominator)
30 31
 	exitdiv(sign, dividend);
31 32
 }
32 33
 
  34
+long __modsi3 (long numerator, long denominator);
33 35
 long __modsi3 (long numerator, long denominator)
34 36
 {
35 37
 	int sign;
30  software/libbase/softfloat-glue.c
@@ -15,13 +15,15 @@
15 15
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 16
  */
17 17
 
  18
+#include "milieu.h"
18 19
 #include "softfloat.h"
19 20
 
20 21
 /*
21 22
  * 'Equal' wrapper. This returns 0 if the numbers are equal, or (1 | -1)
22 23
  * otherwise. So we need to invert the output.
23 24
  */
24  
-int __eqsf2(float32 a, float32 b)
  25
+flag __eqsf2(float32 a, float32 b);
  26
+flag __eqsf2(float32 a, float32 b)
25 27
 {
26 28
 	return !float32_eq(a, b);
27 29
 }
@@ -32,7 +34,8 @@ int __eqsf2(float32 a, float32 b)
32 34
  * to use an 'equal' call and invert the result. The result is already
33 35
  * inverted though! Confusing?!
34 36
  */
35  
-int __nesf2(float32 a, float32 b)
  37
+flag __nesf2(float32 a, float32 b);
  38
+flag __nesf2(float32 a, float32 b)
36 39
 {
37 40
 	return !float32_eq(a, b);
38 41
 }
@@ -44,7 +47,8 @@ int __nesf2(float32 a, float32 b)
44 47
  * make up our mind. This means that we can call 'less than or equal' and
45 48
  * invert the result.
46 49
  */
47  
-int __gtsf2(float32 a, float32 b)
  50
+flag __gtsf2(float32 a, float32 b);
  51
+flag __gtsf2(float32 a, float32 b)
48 52
 {
49 53
 	return !float32_le(a, b);
50 54
 }
@@ -53,7 +57,8 @@ int __gtsf2(float32 a, float32 b)
53 57
  * 'Greater Than or Equal' wrapper. We emulate this by inverting the result
54 58
  * of a 'less than' call.
55 59
  */
56  
-int __gesf2(float32 a, float32 b)
  60
+flag __gesf2(float32 a, float32 b);
  61
+flag __gesf2(float32 a, float32 b)
57 62
 {
58 63
 	return !float32_lt(a, b);
59 64
 }
@@ -61,7 +66,8 @@ int __gesf2(float32 a, float32 b)
61 66
 /*
62 67
  * 'Less Than' wrapper.
63 68
  */
64  
-int __ltsf2(float32 a, float32 b)
  69
+flag __ltsf2(float32 a, float32 b);
  70
+flag __ltsf2(float32 a, float32 b)
65 71
 {
66 72
 	return float32_lt(a, b);
67 73
 }
@@ -69,7 +75,8 @@ int __ltsf2(float32 a, float32 b)
69 75
 /*
70 76
  * 'Less Than or Equal' wrapper. A 0 must turn into a 1, and a 1 into a 0.
71 77
  */
72  
-int __lesf2(float32 a, float32 b)
  78
+flag __lesf2(float32 a, float32 b);
  79
+flag __lesf2(float32 a, float32 b)
73 80
 {
74 81
 	return !float32_le(a, b);
75 82
 }
@@ -80,6 +87,7 @@ int __lesf2(float32 a, float32 b)
80 87
  * position in the registers of arguments, the double precision version can
81 88
  * go here too ;-)
82 89
  */
  90
+float32 __negsf2(float32 x);
83 91
 float32 __negsf2(float32 x)
84 92
 {
85 93
 	return x ^ 0x80000000;
@@ -88,42 +96,50 @@ float32 __negsf2(float32 x)
88 96
 /*
89 97
  * 32-bit operations.
90 98
  */
  99
+float32 __addsf3(float32 a, float32 b);
91 100
 float32 __addsf3(float32 a, float32 b)
92 101
 {
93 102
 	return float32_add(a, b);
94 103
 }
95 104
 
  105
+float32 __subsf3(float32 a, float32 b);
96 106
 float32 __subsf3(float32 a, float32 b)
97 107
 {
98 108
 	return float32_sub(a, b);
99 109
 }
100 110
 
  111
+float32 __mulsf3(float32 a, float32 b);
101 112
 float32 __mulsf3(float32 a, float32 b)
102 113
 {
103 114
 	return float32_mul(a, b);
104 115
 }
105 116
 
  117
+float32 __divsf3(float32 a, float32 b);
106 118
 float32 __divsf3(float32 a, float32 b)
107 119
 {
108 120
 	return float32_div(a, b);
109 121
 }
110 122
 
  123
+float32 __floatsisf(int x);
111 124
 float32 __floatsisf(int x)
112 125
 {
113 126
 	return int32_to_float32(x);
114 127
 }
115 128
 
  129
+int __fixsfsi(float32 x);
116 130
 int __fixsfsi(float32 x)
117 131
 {
118 132
 	return float32_to_int32_round_to_zero(x);
119 133
 }
120 134
 
  135
+unsigned int __fixunssfsi(float32 x);
121 136
 unsigned int __fixunssfsi(float32 x)
122 137
 {
123 138
 	return float32_to_int32_round_to_zero(x); // XXX
124 139
 }
125 140
 
126  
-int __unordsf2(float32 a, float32 b)
  141
+flag __unordsf2(float32 a, float32 b);
  142
+flag __unordsf2(float32 a, float32 b)
127 143
 {
128 144
 	/*
129 145
 	 * The comparison is unordered if either input is a NaN.
15  software/libbase/softfloat.h
@@ -109,11 +109,12 @@ float32 float32_mul( float32, float32 );
109 109
 float32 float32_div( float32, float32 );
110 110
 float32 float32_rem( float32, float32 );
111 111
 float32 float32_sqrt( float32 );
112  
-int float32_eq( float32, float32 );
113  
-int float32_le( float32, float32 );
114  
-int float32_lt( float32, float32 );
115  
-int float32_eq_signaling( float32, float32 );
116  
-int float32_le_quiet( float32, float32 );
117  
-int float32_lt_quiet( float32, float32 );
118  
-int float32_is_signaling_nan( float32 );
  112
+flag float32_eq( float32, float32 );
  113
+flag float32_le( float32, float32 );
  114
+flag float32_lt( float32, float32 );
  115
+flag float32_eq_signaling( float32, float32 );
  116
+flag float32_le_quiet( float32, float32 );
  117
+flag float32_lt_quiet( float32, float32 );
  118
+flag float32_is_nan( float32 a );
  119
+flag float32_is_signaling_nan( float32 );
119 120
 

0 notes on commit fb22edc

Please sign in to comment.
Something went wrong with that request. Please try again.