[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/Integer/SSAtest.c arith.c array.c bigint.c bitbit.c bitlogic.c cond-expr.c enum.cpp extern-inline-redef.c large-array.c local-array.c local-union.c matrix.c offset.c pointer.c struct1.c struct2.c structInit.c template.cpp union-init.c union-struct.c
Reid Spencer
reid at x10sys.com
Thu Jan 18 18:48:31 PST 2007
Changes in directory llvm-test/SingleSource/UnitTests/Integer:
SSAtest.c updated: 1.1 -> 1.2
arith.c updated: 1.1 -> 1.2
array.c updated: 1.1 -> 1.2
bigint.c updated: 1.1 -> 1.2
bitbit.c updated: 1.1 -> 1.2
bitlogic.c updated: 1.1 -> 1.2
cond-expr.c updated: 1.1 -> 1.2
enum.cpp updated: 1.1 -> 1.2
extern-inline-redef.c updated: 1.1 -> 1.2
large-array.c updated: 1.1 -> 1.2
local-array.c updated: 1.1 -> 1.2
local-union.c updated: 1.1 -> 1.2
matrix.c updated: 1.1 -> 1.2
offset.c updated: 1.1 -> 1.2
pointer.c updated: 1.1 -> 1.2
struct1.c updated: 1.1 -> 1.2
struct2.c updated: 1.1 -> 1.2
structInit.c updated: 1.1 -> 1.2
template.cpp updated: 1.1 -> 1.2
union-init.c updated: 1.1 -> 1.2
union-struct.c updated: 1.1 -> 1.2
---
Log message:
Get rid of compilation errors and warnings.
---
Diffs of the changes: (+23 -13)
SSAtest.c | 1 +
arith.c | 1 +
array.c | 1 +
bigint.c | 4 ++--
bitbit.c | 1 +
bitlogic.c | 3 ++-
cond-expr.c | 5 +++--
enum.cpp | 5 -----
extern-inline-redef.c | 1 +
large-array.c | 1 +
local-array.c | 1 +
local-union.c | 1 +
matrix.c | 1 +
offset.c | 1 +
pointer.c | 1 +
struct1.c | 1 +
struct2.c | 1 +
structInit.c | 1 +
template.cpp | 3 ---
union-init.c | 1 +
union-struct.c | 1 +
21 files changed, 23 insertions(+), 13 deletions(-)
Index: llvm-test/SingleSource/UnitTests/Integer/SSAtest.c
diff -u llvm-test/SingleSource/UnitTests/Integer/SSAtest.c:1.1 llvm-test/SingleSource/UnitTests/Integer/SSAtest.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/SSAtest.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/SSAtest.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(4))) int4;
Index: llvm-test/SingleSource/UnitTests/Integer/arith.c
diff -u llvm-test/SingleSource/UnitTests/Integer/arith.c:1.1 llvm-test/SingleSource/UnitTests/Integer/arith.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/arith.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/arith.c Thu Jan 18 20:48:16 2007
@@ -1,6 +1,7 @@
// Date: Fri Jan 12 17:19:09 CST 2007
#include "arith.h"
+#include <stdio.h>
int21 x = 0x1fffff;
Index: llvm-test/SingleSource/UnitTests/Integer/array.c
diff -u llvm-test/SingleSource/UnitTests/Integer/array.c:1.1 llvm-test/SingleSource/UnitTests/Integer/array.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/array.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/array.c Thu Jan 18 20:48:16 2007
@@ -1,5 +1,6 @@
#include "array.h"
+#include <stdio.h>
typedef enum bool{false=0, true=1} bool;
Index: llvm-test/SingleSource/UnitTests/Integer/bigint.c
diff -u llvm-test/SingleSource/UnitTests/Integer/bigint.c:1.1 llvm-test/SingleSource/UnitTests/Integer/bigint.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/bigint.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/bigint.c Thu Jan 18 20:48:16 2007
@@ -1,6 +1,7 @@
// Date: Fri Jan 12 17:25:23 CST 2007
#include "bigint.h"
+#include <stdio.h>
typedef enum bool{false=0, true=1} bool;
@@ -24,7 +25,7 @@
for ( ; ; ) {
bool ssdm_tmp_1 = (i < bnd);
if (!ssdm_tmp_1) break;
- if (i % 2 == 0
+ if (i % 2 == 0)
x = x + 1;
else
y = y - x;
@@ -42,7 +43,6 @@
printf("rem2 = %lld\n", rem2);
return 0;
}
-}
int main()
{
Index: llvm-test/SingleSource/UnitTests/Integer/bitbit.c
diff -u llvm-test/SingleSource/UnitTests/Integer/bitbit.c:1.1 llvm-test/SingleSource/UnitTests/Integer/bitbit.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/bitbit.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/bitbit.c Thu Jan 18 20:48:16 2007
@@ -1,5 +1,6 @@
// Date: Fri Jan 12 17:28:32 CST 2007
#include "bitbit.h"
+#include <stdio.h>
// Module | Test
// Thread: int my_test();
Index: llvm-test/SingleSource/UnitTests/Integer/bitlogic.c
diff -u llvm-test/SingleSource/UnitTests/Integer/bitlogic.c:1.1 llvm-test/SingleSource/UnitTests/Integer/bitlogic.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/bitlogic.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/bitlogic.c Thu Jan 18 20:48:16 2007
@@ -1,5 +1,6 @@
// Date: Fri Jan 12 17:40:34 CST 2007
-#include "bitlogic.cpp.ssdm.h"
+#include "bitlogic.h"
+#include <stdio.h>
// Module | Test
// Thread: int my_test();
Index: llvm-test/SingleSource/UnitTests/Integer/cond-expr.c
diff -u llvm-test/SingleSource/UnitTests/Integer/cond-expr.c:1.1 llvm-test/SingleSource/UnitTests/Integer/cond-expr.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/cond-expr.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/cond-expr.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(31))) int31;
@@ -6,12 +7,12 @@
void split_large_page(int31 addr, pgprot_t prot)
{
int31 x;
- x = (addr ? prot : ((pgprot_t) { 0x101 } )).pgprot;
+ x = (addr ? prot : ((pgprot_t) 0x101 )).pgprot;
printf("%x\n", x);
}
int main()
{
- split_large_page(0x7fffffff, (pgprot_t){0x1});
+ split_large_page(0x7fffffff, (pgprot_t)0x1);
return 0;
}
Index: llvm-test/SingleSource/UnitTests/Integer/enum.cpp
diff -u llvm-test/SingleSource/UnitTests/Integer/enum.cpp:1.1 llvm-test/SingleSource/UnitTests/Integer/enum.cpp:1.2
--- llvm-test/SingleSource/UnitTests/Integer/enum.cpp:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/enum.cpp Thu Jan 18 20:48:16 2007
@@ -1,10 +1,5 @@
-
-
-
#include <stdio.h>
-
-
class myClass
{
public:
Index: llvm-test/SingleSource/UnitTests/Integer/extern-inline-redef.c
diff -u llvm-test/SingleSource/UnitTests/Integer/extern-inline-redef.c:1.1 llvm-test/SingleSource/UnitTests/Integer/extern-inline-redef.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/extern-inline-redef.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/extern-inline-redef.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(61))) int61;
Index: llvm-test/SingleSource/UnitTests/Integer/large-array.c
diff -u llvm-test/SingleSource/UnitTests/Integer/large-array.c:1.1 llvm-test/SingleSource/UnitTests/Integer/large-array.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/large-array.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/large-array.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(13))) int13;
Index: llvm-test/SingleSource/UnitTests/Integer/local-array.c
diff -u llvm-test/SingleSource/UnitTests/Integer/local-array.c:1.1 llvm-test/SingleSource/UnitTests/Integer/local-array.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/local-array.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/local-array.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(4))) int4;
typedef int __attribute__ ((bitwidth(6))) int6;
Index: llvm-test/SingleSource/UnitTests/Integer/local-union.c
diff -u llvm-test/SingleSource/UnitTests/Integer/local-union.c:1.1 llvm-test/SingleSource/UnitTests/Integer/local-union.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/local-union.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/local-union.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(33))) int33;
Index: llvm-test/SingleSource/UnitTests/Integer/matrix.c
diff -u llvm-test/SingleSource/UnitTests/Integer/matrix.c:1.1 llvm-test/SingleSource/UnitTests/Integer/matrix.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/matrix.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/matrix.c Thu Jan 18 20:48:16 2007
@@ -1,6 +1,7 @@
// Date: Fri Jan 12 17:32:33 CST 2007
#include "matrix.h"
+#include <stdio.h>
typedef enum bool{false=0, true=1} bool;
Index: llvm-test/SingleSource/UnitTests/Integer/offset.c
diff -u llvm-test/SingleSource/UnitTests/Integer/offset.c:1.1 llvm-test/SingleSource/UnitTests/Integer/offset.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/offset.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/offset.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(33))) int33;
Index: llvm-test/SingleSource/UnitTests/Integer/pointer.c
diff -u llvm-test/SingleSource/UnitTests/Integer/pointer.c:1.1 llvm-test/SingleSource/UnitTests/Integer/pointer.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/pointer.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/pointer.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(3))) int3;
typedef int __attribute__ ((bitwidth(31))) int31;
Index: llvm-test/SingleSource/UnitTests/Integer/struct1.c
diff -u llvm-test/SingleSource/UnitTests/Integer/struct1.c:1.1 llvm-test/SingleSource/UnitTests/Integer/struct1.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/struct1.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/struct1.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(33))) int33;
Index: llvm-test/SingleSource/UnitTests/Integer/struct2.c
diff -u llvm-test/SingleSource/UnitTests/Integer/struct2.c:1.1 llvm-test/SingleSource/UnitTests/Integer/struct2.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/struct2.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/struct2.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(33))) int33;
typedef int __attribute__ ((bitwidth(9))) int9;
Index: llvm-test/SingleSource/UnitTests/Integer/structInit.c
diff -u llvm-test/SingleSource/UnitTests/Integer/structInit.c:1.1 llvm-test/SingleSource/UnitTests/Integer/structInit.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/structInit.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/structInit.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(31))) int31;
typedef int __attribute__ ((bitwidth(24))) int24;
Index: llvm-test/SingleSource/UnitTests/Integer/template.cpp
diff -u llvm-test/SingleSource/UnitTests/Integer/template.cpp:1.1 llvm-test/SingleSource/UnitTests/Integer/template.cpp:1.2
--- llvm-test/SingleSource/UnitTests/Integer/template.cpp:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/template.cpp Thu Jan 18 20:48:16 2007
@@ -21,9 +21,6 @@
return tParam3;
}
-
-
-
int main()
{
int4 x , y, z;
Index: llvm-test/SingleSource/UnitTests/Integer/union-init.c
diff -u llvm-test/SingleSource/UnitTests/Integer/union-init.c:1.1 llvm-test/SingleSource/UnitTests/Integer/union-init.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/union-init.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/union-init.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(33))) int33;
Index: llvm-test/SingleSource/UnitTests/Integer/union-struct.c
diff -u llvm-test/SingleSource/UnitTests/Integer/union-struct.c:1.1 llvm-test/SingleSource/UnitTests/Integer/union-struct.c:1.2
--- llvm-test/SingleSource/UnitTests/Integer/union-struct.c:1.1 Thu Jan 18 20:22:46 2007
+++ llvm-test/SingleSource/UnitTests/Integer/union-struct.c Thu Jan 18 20:48:16 2007
@@ -1,3 +1,4 @@
+#include <stdio.h>
typedef int __attribute__ ((bitwidth(31))) int31;
More information about the llvm-commits
mailing list