Comment out broken tests and make the rest build in cmake build system.

llvm-svn: 84330
diff --git a/compiler-rt/test/Unit/gcc_personality_test.c b/compiler-rt/test/Unit/gcc_personality_test.c
index 0ce1431..7fe661b 100644
--- a/compiler-rt/test/Unit/gcc_personality_test.c
+++ b/compiler-rt/test/Unit/gcc_personality_test.c
@@ -1,11 +1,12 @@
-//===-- gcc_personality_test.c - Tests __gcc_personality_v0 -------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
+/* ===-- gcc_personality_test.c - Tests __gcc_personality_v0 -------------===
+ *
+ *                     The LLVM Compiler Infrastructure
+ *
+ * This file is distributed under the University of Illinois Open Source
+ * License. See LICENSE.TXT for details.
+ *
+ * ===----------------------------------------------------------------------===
+ */
 
 
 #include <stdlib.h>
@@ -19,28 +20,23 @@
 extern void done_bar();
 
 
-//
-// foo() is called by main() in gcc_personality_test_helper.cxx.
-// done_bar() is implemented in C++ and will throw an exception.
-// main() will catch the exception and verify that the cleanup
-// routines for foo() and bar() were called by the personality
-// function.
-//
+/*
+ * foo() is called by main() in gcc_personality_test_helper.cxx.
+ * done_bar() is implemented in C++ and will throw an exception.
+ * main() will catch the exception and verify that the cleanup
+ * routines for foo() and bar() were called by the personality
+ * function.
+ */
 
-
-void bar()
-{
+void bar() {
     int x __attribute__((cleanup(bar_clean))) = 0;
     register_bar_local(&x);
     done_bar();
 }
 
-void foo()
-{
+void foo() {
     int x __attribute__((cleanup(foo_clean))) = 0;
     register_foo_local(&x);
     bar();
     done_foo();
 }
-
-
diff --git a/compiler-rt/test/Unit/int_lib.h b/compiler-rt/test/Unit/int_lib.h
index e5bfd66..e01de1d 100644
--- a/compiler-rt/test/Unit/int_lib.h
+++ b/compiler-rt/test/Unit/int_lib.h
@@ -45,7 +45,7 @@
         si_int high;
         su_int low;
 #endif /* _YUGA_LITTLE_ENDIAN */
-    };
+    }s;
 } dwords;
 
 typedef union
@@ -60,7 +60,7 @@
         su_int high;
         su_int low;
 #endif /* _YUGA_LITTLE_ENDIAN */
-    };
+    }s;
 } udwords;
 
 #if __x86_64
@@ -80,7 +80,7 @@
         di_int high;
         du_int low;
 #endif /* _YUGA_LITTLE_ENDIAN */
-    };
+    }s;
 } twords;
 
 typedef union
@@ -95,7 +95,7 @@
         du_int high;
         du_int low;
 #endif /* _YUGA_LITTLE_ENDIAN */
-    };
+    }s;
 } utwords;
 
 inline
diff --git a/compiler-rt/test/Unit/modsi3_test.c b/compiler-rt/test/Unit/modsi3_test.c
index e345acc..82a0fab 100644
--- a/compiler-rt/test/Unit/modsi3_test.c
+++ b/compiler-rt/test/Unit/modsi3_test.c
@@ -1,34 +1,33 @@
-//===-- modsi3_test.c - Test __modsi3 -------------------------------------===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file tests __modsi3 for the compiler_rt library.
-//
-//===----------------------------------------------------------------------===//
+/* ===-- modsi3_test.c - Test __modsi3 -------------------------------------===
+ *
+ *                     The LLVM Compiler Infrastructure
+ *
+ * This file is distributed under the University of Illinois Open Source
+ * License. See LICENSE.TXT for details.
+ *
+ * ===----------------------------------------------------------------------===
+ *
+ * This file tests __modsi3 for the compiler_rt library.
+ *
+ * ===----------------------------------------------------------------------===
+ */
 
 #include "int_lib.h"
 #include <stdio.h>
 
-// Returns: a % b
+/* Returns: a % b */
 
 si_int __modsi3(si_int a, si_int b);
 
-int test__modsi3(si_int a, si_int b, si_int expected)
-{
+int test__modsi3(si_int a, si_int b, si_int expected) {
     si_int x = __modsi3(a, b);
     if (x != expected)
-        printf("error in __modsi3: %d %% %d = %d, expected %d\n",
+        fprintf(stderr, "error in __modsi3: %d %% %d = %d, expected %d\n",
                a, b, x, expected);
     return x != expected;
 }
 
-int main()
-{
+int main() {
     if (test__modsi3(0, 1, 0))
         return 1;
     if (test__modsi3(0, -1, 0))