arch_register_class_put() is only used locally
[libfirm] / ir / be / tools / mkrandflags.c
1 /**
2  * Outputs a random set of compiler flags
3  *  @author Matthias Braun (warning: 10 minutes hack and no nice code!)
4  */
5 #include <stdio.h>
6 #include <time.h>
7
8 const char* flags[] = {
9         "-fif-conv",
10         "-finline",
11         "-fcse",
12         "-fcode-place",
13         "-fgvn-pre",
14         "-fopt-loop-unrolling",
15         "-fconfirm",
16         "-fopt-proc-clone",
17         "-fno-strength-red",
18         "-fno-reassociation"
19 };
20
21 int main()
22 {
23         int i;
24         int flagcount = sizeof(flags) / sizeof(flags[0]);
25         srand(time(0));
26
27         for(i = 0; i < flagcount; ++i) {
28                 if(rand() % 2) {
29                         printf("%s ", flags[i]);
30                 }
31         }
32         printf("\n");
33
34         return 0;
35 }