projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c0c1e1
)
fixed lots of warnings in testprograms
author
Matthias Braun
<matze@braunis.de>
Mon, 2 Jul 2007 13:48:35 +0000
(13:48 +0000)
committer
Matthias Braun
<matze@braunis.de>
Mon, 2 Jul 2007 13:48:35 +0000
(13:48 +0000)
[r14882]
38 files changed:
ir/be/test/Arrays.c
patch
|
blob
|
history
ir/be/test/Field.c
patch
|
blob
|
history
ir/be/test/ForTest.c
patch
|
blob
|
history
ir/be/test/GlobalCseTest.c
patch
|
blob
|
history
ir/be/test/HeapSort.c
patch
|
blob
|
history
ir/be/test/Local.c
patch
|
blob
|
history
ir/be/test/Pdg.c
patch
|
blob
|
history
ir/be/test/Queens.c
patch
|
blob
|
history
ir/be/test/Sieve.c
patch
|
blob
|
history
ir/be/test/Switcher.c
patch
|
blob
|
history
ir/be/test/ack/t7.c
patch
|
blob
|
history
ir/be/test/arr_init.c
patch
|
blob
|
history
ir/be/test/array_type.c
patch
|
blob
|
history
ir/be/test/bitfield.c
patch
|
blob
|
history
ir/be/test/compress95.c
patch
|
blob
|
history
ir/be/test/convtest.c
patch
|
blob
|
history
ir/be/test/dblstruct.c
patch
|
blob
|
history
ir/be/test/fehler10.c
patch
|
blob
|
history
ir/be/test/fehler11.c
patch
|
blob
|
history
ir/be/test/fehler14.c
patch
|
blob
|
history
ir/be/test/gcd.c
patch
|
blob
|
history
ir/be/test/harness.c
patch
|
blob
|
history
ir/be/test/kahansum.c
patch
|
blob
|
history
ir/be/test/nested_loops.c
patch
|
blob
|
history
ir/be/test/nested_loops2.c
patch
|
blob
|
history
ir/be/test/ns.c
patch
|
blob
|
history
ir/be/test/optest.h
patch
|
blob
|
history
ir/be/test/stmt_expr.c
patch
|
blob
|
history
ir/be/test/strenght_red.c
patch
|
blob
|
history
ir/be/test/struct.c
patch
|
blob
|
history
ir/be/test/switch_test.c
patch
|
blob
|
history
ir/be/test/trivial_add.c
patch
|
blob
|
history
ir/be/test/trivial_div.c
patch
|
blob
|
history
ir/be/test/trivial_max.c
patch
|
blob
|
history
ir/be/test/trivial_sum_upto.c
patch
|
blob
|
history
ir/be/test/trivial_two_times.c
patch
|
blob
|
history
ir/be/test/valist.c
patch
|
blob
|
history
ir/be/test/vandrunen.c
patch
|
blob
|
history
diff --git
a/ir/be/test/Arrays.c
b/ir/be/test/Arrays.c
index
082e9ed
..
0e931a8
100644
(file)
--- a/
ir/be/test/Arrays.c
+++ b/
ir/be/test/Arrays.c
@@
-1,4
+1,5
@@
#include <stdio.h>
#include <stdio.h>
+#include <string.h>
struct Arr2Object {
int a[10];
struct Arr2Object {
int a[10];
@@
-36,7
+37,6
@@
static void pass_array_test(struct ArrObject *a, int a_len)
int main(int argc, char *argv[]) {
int i, j, bi;
struct ArrObject ao[10];
int main(int argc, char *argv[]) {
int i, j, bi;
struct ArrObject ao[10];
- struct ArrObject aob;
struct Arr2Object a2o[2];
struct Arr2Object a2;
struct Arr2Object a2o[2];
struct Arr2Object a2;
diff --git
a/ir/be/test/Field.c
b/ir/be/test/Field.c
index
a78d668
..
7c2e667
100644
(file)
--- a/
ir/be/test/Field.c
+++ b/
ir/be/test/Field.c
@@
-2,7
+2,7
@@
* $Id$
*/
* $Id$
*/
-
//
#include <stdio.h>
+#include <stdio.h>
struct s {
int a;
struct s {
int a;
diff --git
a/ir/be/test/ForTest.c
b/ir/be/test/ForTest.c
index
3ca67fb
..
945ab9f
100644
(file)
--- a/
ir/be/test/ForTest.c
+++ b/
ir/be/test/ForTest.c
@@
-12,19
+12,8
@@
typedef int boolean;
#define true 1
#define false 0
#define true 1
#define false 0
-static void piff(void) {
- int i, j, x, delta_x;
-
- delta_x = 2;
- j = 0;
- x = 0;
- for (i = 0, x = 0; i < 1000; i++, x += delta_x) {
- j += x;
- }
-}
-
static int simpleloop (int a, int b) {
static int simpleloop (int a, int b) {
- int i, j
, delta_x, x
;
+ int i, j;
boolean loopfinal = true;
for(i = 0; (i < 10) && loopfinal; i++) {
boolean loopfinal = true;
for(i = 0; (i < 10) && loopfinal; i++) {
@@
-43,8
+32,6
@@
static int simpleloop (int a, int b) {
}
int main (int argc, char *argv[]) {
}
int main (int argc, char *argv[]) {
- int i, j;
-
printf("ForTest.c\n");
simpleloop(3, 10);
printf("ForTest.c\n");
simpleloop(3, 10);
diff --git
a/ir/be/test/GlobalCseTest.c
b/ir/be/test/GlobalCseTest.c
index
237328c
..
a8d6213
100644
(file)
--- a/
ir/be/test/GlobalCseTest.c
+++ b/
ir/be/test/GlobalCseTest.c
@@
-4,6
+4,7
@@
// $Id$
//
// Testprogram to test GCC-firm : GlobalCseTest.c
// $Id$
//
// Testprogram to test GCC-firm : GlobalCseTest.c
+#include <stdio.h>
int m(int a) {
int b;
int m(int a) {
int b;
diff --git
a/ir/be/test/HeapSort.c
b/ir/be/test/HeapSort.c
index
3879b78
..
a3c0826
100644
(file)
--- a/
ir/be/test/HeapSort.c
+++ b/
ir/be/test/HeapSort.c
@@
-107,7
+107,7
@@
void heapaufbau2(int *a, int *b, int len) {
* Heap-Methoden und gibt das sortierte Feld zurück.
*/
int *heapsort(int *b, int len) {
* Heap-Methoden und gibt das sortierte Feld zurück.
*/
int *heapsort(int *b, int len) {
- int
i,
k;
+ int k;
int *c;
int *a;
int *c;
int *a;
diff --git
a/ir/be/test/Local.c
b/ir/be/test/Local.c
index
c978b66
..
50767a4
100644
(file)
--- a/
ir/be/test/Local.c
+++ b/
ir/be/test/Local.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
//
// GCC-firm Project
//
//
// GCC-firm Project
//
diff --git
a/ir/be/test/Pdg.c
b/ir/be/test/Pdg.c
index
238dda0
..
55de027
100644
(file)
--- a/
ir/be/test/Pdg.c
+++ b/
ir/be/test/Pdg.c
@@
-12,6
+12,7
@@
int main(int argc, char *argv[]) {
printf("Pdg.c\n");
i = 1;
printf("Pdg.c\n");
i = 1;
+ k = 0;
while (i < 10) {
j = i + 1;
if (j == 7)
while (i < 10) {
j = i + 1;
if (j == 7)
@@
-21,5
+22,6
@@
int main(int argc, char *argv[]) {
i = i + 1;
}
i = i + 1;
}
+ (void) k;
return 0;
}
return 0;
}
diff --git
a/ir/be/test/Queens.c
b/ir/be/test/Queens.c
index
c0f4db5
..
f50bcfe
100644
(file)
--- a/
ir/be/test/Queens.c
+++ b/
ir/be/test/Queens.c
@@
-38,43
+38,48
@@
boolean place_ok (int i) {
int j = 0;
boolean res;
int j = 0;
boolean res;
+ printf("POK: %d\n", i);
+
while (j < i) {
if ((row[j] == row[i]) || ((myabs(row[i]-row[j])) == (i-j))) {
while (j < i) {
if ((row[j] == row[i]) || ((myabs(row[i]-row[j])) == (i-j))) {
+ printf("F\n");
res = false;
return(res);
}
j = j+1;
}
res = false;
return(res);
}
j = j+1;
}
+ printf("T\n");
res = true;
return(res);
}
int solve (int n) {
res = true;
return(res);
}
int solve (int n) {
- // return the number of solutions to the n-queens problem
- int c = 0;
- int res = 0;
-
- row = (void *)malloc(sizeof(*row) * n);
- row[0] = -1;
- while (c >= 0) {
- row[c] = row[c]+1;
- while ((row[c] < n) && (!place_ok(c))) {
- row[c] = row[c]+1;
- }
- if (row[c] < n) { // successfully placed at (c,row[c])
- if (c == n-1)
- res = res+1;
- else {
- c = c+1;
- row[c] = -1;
- }
- }
- else // dead end, track back
- c = c-1;
- }
- free(row);
-
- return(res);
+ // return the number of solutions to the n-queens problem
+ int c = 0;
+ int res = 0;
+
+ row = (void *)malloc(sizeof(*row) * n);
+ row[0] = -1;
+ while (c >= 0) {
+ row[c] = row[c]+1;
+ while ((row[c] < n) && (!place_ok(c))) {
+ row[c] = row[c]+1;
+ }
+ printf("RC: %d\n", row[c]);
+ if (row[c] < n) { // successfully placed at (c,row[c])
+ if (c == n-1)
+ res = res+1;
+ else {
+ c = c+1;
+ row[c] = -1;
+ }
+ }
+ else // dead end, track back
+ c = c-1;
+ }
+ free(row);
+
+ return(res);
}
static void usage (const char *progname) {
}
static void usage (const char *progname) {
diff --git
a/ir/be/test/Sieve.c
b/ir/be/test/Sieve.c
index
fb2e418
..
25c4213
100644
(file)
--- a/
ir/be/test/Sieve.c
+++ b/
ir/be/test/Sieve.c
@@
-28,7
+28,7
@@
static void mark_count(int c) {
static void runSieve(void) {
int ITERATIONS = 100000;
boolean *flags;
static void runSieve(void) {
int ITERATIONS = 100000;
boolean *flags;
- int i, prime, k
, iter, p
;
+ int i, prime, k;
int iterations = 0;
int count;
int iterations = 0;
int count;
@@
-58,8
+58,6
@@
static void runSieve(void) {
}
int main(int argc, char *argv[]) {
}
int main(int argc, char *argv[]) {
- int i;
-
printf("Sieve.c\n");
if (argc <= 1) {
printf("Sieve.c\n");
if (argc <= 1) {
diff --git
a/ir/be/test/Switcher.c
b/ir/be/test/Switcher.c
index
aee52de
..
cdecf7d
100644
(file)
--- a/
ir/be/test/Switcher.c
+++ b/
ir/be/test/Switcher.c
@@
-15,10
+15,6
@@
static void print_int(int i) {
printf(" %d\n", i);
}
printf(" %d\n", i);
}
-static int id(int i) {
- return(i);
-}
-
// standard switch with 1 case
static void switch1(int i) {
switch(i) {
// standard switch with 1 case
static void switch1(int i) {
switch(i) {
@@
-141,13
+137,14
@@
static void double_switch(int i) {
int main (int argc, char *argv[]) {
printf("Switcher.c\n");
int main (int argc, char *argv[]) {
printf("Switcher.c\n");
- printf(" must print:\n 0\n 2\n 0\n 3\n -1\n 2\n is 16\n multiple of 4\n\n");
+ printf(" must print:\n 0\n 2\n 0\n 3\n -1\n 2\n
5\n
is 16\n multiple of 4\n\n");
switch1(0);
switch2(2);
switch3(0);
switch4(5);
switch5(0);
switch6(2);
switch1(0);
switch2(2);
switch3(0);
switch4(5);
switch5(0);
switch6(2);
+ switch7(3);
double_switch(16);
return 0;
double_switch(16);
return 0;
diff --git
a/ir/be/test/ack/t7.c
b/ir/be/test/ack/t7.c
index
69457f2
..
56648dd
100644
(file)
--- a/
ir/be/test/ack/t7.c
+++ b/
ir/be/test/ack/t7.c
@@
-135,6
+135,7
@@
int n;
itoa(t,cht);
write(1,cht,strlen(cht));
write(1,pp6,strlen(pp6));
itoa(t,cht);
write(1,cht,strlen(cht));
write(1,pp6,strlen(pp6));
+ abort();
}
}
diff --git
a/ir/be/test/arr_init.c
b/ir/be/test/arr_init.c
index
fff9a7c
..
2c3f26f
100644
(file)
--- a/
ir/be/test/arr_init.c
+++ b/
ir/be/test/arr_init.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
int arr0[] = { 0, 1, 2, 3 };
int arr1[4] = { 3, 2, 1 };
int arrm[3][4] = { {1}, {2,3,4,5}, {6, 7, 8 } };
int arr0[] = { 0, 1, 2, 3 };
int arr1[4] = { 3, 2, 1 };
int arrm[3][4] = { {1}, {2,3,4,5}, {6, 7, 8 } };
diff --git
a/ir/be/test/array_type.c
b/ir/be/test/array_type.c
index
6a6a508
..
668b02e
100644
(file)
--- a/
ir/be/test/array_type.c
+++ b/
ir/be/test/array_type.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
int foo[255][4];
int bar[4] = { 0, 1, 2, 3 };
int foo[255][4];
int bar[4] = { 0, 1, 2, 3 };
diff --git
a/ir/be/test/bitfield.c
b/ir/be/test/bitfield.c
index
5703c68
..
d92d0ca
100644
(file)
--- a/
ir/be/test/bitfield.c
+++ b/
ir/be/test/bitfield.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
struct a {
unsigned int i:1;
};
struct a {
unsigned int i:1;
};
diff --git
a/ir/be/test/compress95.c
b/ir/be/test/compress95.c
index
3b3ed00
..
352db5e
100644
(file)
--- a/
ir/be/test/compress95.c
+++ b/
ir/be/test/compress95.c
@@
-202,6
+202,7
@@
static char rcs_ident[] = "$Header$";
#include <stdio.h>
#include <ctype.h>
#include <stdio.h>
#include <ctype.h>
+#include <stdlib.h>
#ifdef VMS
#include <types.h>
#include <stat.h>
#ifdef VMS
#include <types.h>
#include <stat.h>
@@
-355,8
+356,7
@@
unsigned char *OutBuff;
spec_select_action(char* from_buf, int from_count, int action, char* to_buf)
{
spec_select_action(char* from_buf, int from_count, int action, char* to_buf)
{
- char *cp, *rindex(), *malloc();
- struct stat statbuf;
+ char *rindex();
#ifdef SYSV
void onintr(), oops();
#else
#ifdef SYSV
void onintr(), oops();
#else
diff --git
a/ir/be/test/convtest.c
b/ir/be/test/convtest.c
index
f4a9730
..
3a32305
100644
(file)
--- a/
ir/be/test/convtest.c
+++ b/
ir/be/test/convtest.c
@@
-12,7
+12,7
@@
int convtest_func(char c, short s, int i, float f, double d) {
short is = s + i;
short fs = s + f;
short ds = s + d;
short is = s + i;
short fs = s + f;
short ds = s + d;
-
int ti = i + s;
+
//
int ti = i + s;
int fi = i + f;
int di = i + d;
float df = d + f;
int fi = i + f;
int di = i + d;
float df = d + f;
diff --git
a/ir/be/test/dblstruct.c
b/ir/be/test/dblstruct.c
index
706e65b
..
b59f399
100644
(file)
--- a/
ir/be/test/dblstruct.c
+++ b/
ir/be/test/dblstruct.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
typedef struct TypeToken
{
int Handle;
typedef struct TypeToken
{
int Handle;
diff --git
a/ir/be/test/fehler10.c
b/ir/be/test/fehler10.c
index
6163e9d
..
fc39453
100644
(file)
--- a/
ir/be/test/fehler10.c
+++ b/
ir/be/test/fehler10.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
void a(void);
void b(void);
void a(void);
void b(void);
diff --git
a/ir/be/test/fehler11.c
b/ir/be/test/fehler11.c
index
2412638
..
ab7b91d
100644
(file)
--- a/
ir/be/test/fehler11.c
+++ b/
ir/be/test/fehler11.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
int main(void) {
long long a = 0x0123456789012345;
int main(void) {
long long a = 0x0123456789012345;
diff --git
a/ir/be/test/fehler14.c
b/ir/be/test/fehler14.c
index
fc2e382
..
97be59b
100644
(file)
--- a/
ir/be/test/fehler14.c
+++ b/
ir/be/test/fehler14.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
unsigned int c = 0xffffffff;
unsigned short b;
unsigned int c = 0xffffffff;
unsigned short b;
diff --git
a/ir/be/test/gcd.c
b/ir/be/test/gcd.c
index
2259c55
..
00d7645
100644
(file)
--- a/
ir/be/test/gcd.c
+++ b/
ir/be/test/gcd.c
@@
-19,7
+19,7
@@
int gcd(int a, int b)
int main(int argc, char** argv)
{
int main(int argc, char** argv)
{
- int a = 49, b = 35, i, g;
+ int a = 49, b = 35, i, g
= 0
;
if(argc > 2) {
a = atoi(argv[1]);
if(argc > 2) {
a = atoi(argv[1]);
diff --git
a/ir/be/test/harness.c
b/ir/be/test/harness.c
index
4ea62e2
..
64f2ae7
100644
(file)
--- a/
ir/be/test/harness.c
+++ b/
ir/be/test/harness.c
@@
-36,7
+36,6
@@
fill_text_buffer(int count, char start_char, char* text_buffer)
long int total; /* normalization */
int i,j; /* array indexers */
char c1,c2; /* character holders for level-three search */
long int total; /* normalization */
int i,j; /* array indexers */
char c1,c2; /* character holders for level-three search */
- int writecount ; /* Number of characters written */
int bufindex;
/*
int bufindex;
/*
@@
-219,31
+218,31
@@
char orig_text_buffer[BUFFERSIZE], comp_text_buffer[BUFFERSIZE], new_text_buffer
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
-int count, i
, oper
;
-int
comp_count,
new_count;
+int count, i;
+int new_count;
char start_char;
char start_char;
-int N;
-char C;
+int comp_count = 0;
printf("SPEC 129.compress harness\n");
printf("SPEC 129.compress harness\n");
- // for now...
- return 0;
- scanf("%i %c %li", &count, &start_char, &seedi);
+ //scanf("%i %c %li", &count, &start_char, &seedi);
+ count = 10;
+ start_char=10;
+ seedi = 12345;
printf("Initial File Size:%i Start character:%c\n", count, start_char, seedi);
fill_text_buffer(count, start_char, orig_text_buffer);
for (i = 1; i <= 25; i++)
{
new_count=add_line(orig_text_buffer, count, i, start_char);
count=new_count;
printf("Initial File Size:%i Start character:%c\n", count, start_char, seedi);
fill_text_buffer(count, start_char, orig_text_buffer);
for (i = 1; i <= 25; i++)
{
new_count=add_line(orig_text_buffer, count, i, start_char);
count=new_count;
- oper=COMPRESS;
+
//
oper=COMPRESS;
printf("The starting size is: %d\n", count);
//comp_count=spec_select_action(orig_text_buffer, count, oper, comp_text_buffer);
printf("The compressed size is: %d\n", comp_count);
printf("The starting size is: %d\n", count);
//comp_count=spec_select_action(orig_text_buffer, count, oper, comp_text_buffer);
printf("The compressed size is: %d\n", comp_count);
- oper=UNCOMPRESS;
+
//
oper=UNCOMPRESS;
//new_count=spec_select_action(comp_text_buffer, comp_count, oper, new_text_buffer);
printf("The compressed/uncompressed size is: %d\n", new_count);
//new_count=spec_select_action(comp_text_buffer, comp_count, oper, new_text_buffer);
printf("The compressed/uncompressed size is: %d\n", new_count);
- compare_buffer(orig_text_buffer, count, new_text_buffer, new_count);
+
//
compare_buffer(orig_text_buffer, count, new_text_buffer, new_count);
}
/* Remove comments for Debugging */
/*
}
/* Remove comments for Debugging */
/*
diff --git
a/ir/be/test/kahansum.c
b/ir/be/test/kahansum.c
index
79d6744
..
d02c5a6
100644
(file)
--- a/
ir/be/test/kahansum.c
+++ b/
ir/be/test/kahansum.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
float kahanSum(const float A[], int n) {
float sum = 0.0, C = 0.0, Y, T;
int i;
float kahanSum(const float A[], int n) {
float sum = 0.0, C = 0.0, Y, T;
int i;
diff --git
a/ir/be/test/nested_loops.c
b/ir/be/test/nested_loops.c
index
685054b
..
300eefa
100644
(file)
--- a/
ir/be/test/nested_loops.c
+++ b/
ir/be/test/nested_loops.c
@@
-1,7
+1,11
@@
+#include <stdio.h>
+
+int k = 0;
+
static void
send_via_write()
{
static void
send_via_write()
{
- int r2, fd;
+ int r2
= k
, fd;
if ( r2 <= 2147483647 )
{
}
if ( r2 <= 2147483647 )
{
}
diff --git
a/ir/be/test/nested_loops2.c
b/ir/be/test/nested_loops2.c
index
40781d3
..
ad805cb
100644
(file)
--- a/
ir/be/test/nested_loops2.c
+++ b/
ir/be/test/nested_loops2.c
@@
-1,6
+1,10
@@
+#include <stdio.h>
+
+int k = 0;
+
static void
send_via_write() {
static void
send_via_write() {
- int r2;
+ int r2
= k
;
if ( r2 <= 2147483647 )
{
}
if ( r2 <= 2147483647 )
{
}
diff --git
a/ir/be/test/ns.c
b/ir/be/test/ns.c
index
f727bbf
..
a6306c8
100644
(file)
--- a/
ir/be/test/ns.c
+++ b/
ir/be/test/ns.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
#define MAX_OPERANDS 3
typedef unsigned short uint16_t;
#define MAX_OPERANDS 3
typedef unsigned short uint16_t;
diff --git
a/ir/be/test/optest.h
b/ir/be/test/optest.h
index
e36cdc5
..
67428b9
100644
(file)
--- a/
ir/be/test/optest.h
+++ b/
ir/be/test/optest.h
@@
-1,3
+1,5
@@
+#include <string.h>
+
#ifndef TESTANZ
#define TESTANZ 21
#define IMM 23
#ifndef TESTANZ
#define TESTANZ 21
#define IMM 23
@@
-5,8
+7,8
@@
#define test16_1 42
#define test16_2 11
#define test16_shift 7
#define test16_1 42
#define test16_2 11
#define test16_shift 7
-#define test32_1 0x001200AB
-#define test32_2 0x00341501
+#define test32_1
(T)
0x001200AB
+#define test32_2
(T)
0x00341501
#define test32_shift 5
#define test32_s 7
#endif
#define test32_shift 5
#define test32_s 7
#endif
diff --git
a/ir/be/test/stmt_expr.c
b/ir/be/test/stmt_expr.c
index
2c439ba
..
ffffbf6
100644
(file)
--- a/
ir/be/test/stmt_expr.c
+++ b/
ir/be/test/stmt_expr.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
#define maxint(a,b) \
({int _a = (a), _b = (b); _a > _b ? _a : _b; })
#define maxint(a,b) \
({int _a = (a), _b = (b); _a > _b ? _a : _b; })
diff --git
a/ir/be/test/strenght_red.c
b/ir/be/test/strenght_red.c
index
0bc9cd0
..
7ac1bf3
100644
(file)
--- a/
ir/be/test/strenght_red.c
+++ b/
ir/be/test/strenght_red.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
int main()
{
int i;
int main()
{
int i;
diff --git
a/ir/be/test/struct.c
b/ir/be/test/struct.c
index
517ea8b
..
5559ece
100644
(file)
--- a/
ir/be/test/struct.c
+++ b/
ir/be/test/struct.c
@@
-1,4
+1,4
@@
-
//
#include <stdio.h>
+#include <stdio.h>
struct A {
int x;
struct A {
int x;
diff --git
a/ir/be/test/switch_test.c
b/ir/be/test/switch_test.c
index
bb3869c
..
d1c7f97
100644
(file)
--- a/
ir/be/test/switch_test.c
+++ b/
ir/be/test/switch_test.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
int test(int a)
{
int b = 0xff;
int test(int a)
{
int b = 0xff;
diff --git
a/ir/be/test/trivial_add.c
b/ir/be/test/trivial_add.c
index
a4fc8c9
..
80ec2f6
100644
(file)
--- a/
ir/be/test/trivial_add.c
+++ b/
ir/be/test/trivial_add.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
/*
* Proj's of the arguments
* Simple DF node.
/*
* Proj's of the arguments
* Simple DF node.
diff --git
a/ir/be/test/trivial_div.c
b/ir/be/test/trivial_div.c
index
b043382
..
4661755
100644
(file)
--- a/
ir/be/test/trivial_div.c
+++ b/
ir/be/test/trivial_div.c
@@
-1,3
+1,4
@@
+#include <stdio.h>
/*
* Proj out of DF node
/*
* Proj out of DF node
diff --git
a/ir/be/test/trivial_max.c
b/ir/be/test/trivial_max.c
index
c2aaf3e
..
2e0acb6
100644
(file)
--- a/
ir/be/test/trivial_max.c
+++ b/
ir/be/test/trivial_max.c
@@
-1,3
+1,4
@@
+#include <stdio.h>
/*
* Control flow divertion in an if statement.
/*
* Control flow divertion in an if statement.
diff --git
a/ir/be/test/trivial_sum_upto.c
b/ir/be/test/trivial_sum_upto.c
index
5f72606
..
6c57225
100644
(file)
--- a/
ir/be/test/trivial_sum_upto.c
+++ b/
ir/be/test/trivial_sum_upto.c
@@
-1,3
+1,4
@@
+#include <stdio.h>
/*
* A simple loop
/*
* A simple loop
diff --git
a/ir/be/test/trivial_two_times.c
b/ir/be/test/trivial_two_times.c
index
4eb6c42
..
ed949cd
100644
(file)
--- a/
ir/be/test/trivial_two_times.c
+++ b/
ir/be/test/trivial_two_times.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
/*
* Proj's of the arguments
* Simple DF node.
/*
* Proj's of the arguments
* Simple DF node.
diff --git
a/ir/be/test/valist.c
b/ir/be/test/valist.c
index
da9c357
..
a75c0b5
100644
(file)
--- a/
ir/be/test/valist.c
+++ b/
ir/be/test/valist.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
#ifdef __GNUC__
#define va_start(v,l) __builtin_va_start(v,l)
#define va_end(v) __builtin_va_end(v)
#ifdef __GNUC__
#define va_start(v,l) __builtin_va_start(v,l)
#define va_end(v) __builtin_va_end(v)
diff --git
a/ir/be/test/vandrunen.c
b/ir/be/test/vandrunen.c
index
a81a3d6
..
3012e66
100644
(file)
--- a/
ir/be/test/vandrunen.c
+++ b/
ir/be/test/vandrunen.c
@@
-1,3
+1,5
@@
+#include <stdio.h>
+
int T6, T10, T13;
/*
int T6, T10, T13;
/*