]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
print the number of performed optimizations after compiling
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 10:47:35 +0000 (11:47 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 10:47:35 +0000 (11:47 +0100)
main.c

diff --git a/main.c b/main.c
index db9f2b81806b848826b985d329a0ab770e8cc82b..9d9c5f3cf2d25182626d895c1624058a2efeb7e1 100644 (file)
--- a/main.c
+++ b/main.c
@@ -686,6 +686,14 @@ srcdone:
 
     /* stuff */
 
+    if (!opts_pp_only) {
+        for (itr = 0; itr < COUNT_OPTIMIZATIONS; ++itr) {
+            if (optimization_count[itr]) {
+                con_out("%s: %u\n", opts_opt_list[itr].name, (unsigned int)optimization_count[itr]);
+            }
+        }
+    }
+
 cleanup:
     util_debug("COM", "cleaning ...\n");
     ftepp_finish();