From: Wolfgang (Blub) Bumiller Date: Fri, 30 Nov 2012 10:47:35 +0000 (+0100) Subject: print the number of performed optimizations after compiling X-Git-Tag: 0.1.9~197 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0983125d2d9aa577fdaa78fd55981f066fdcf2e2;p=xonotic%2Fgmqcc.git print the number of performed optimizations after compiling --- diff --git a/main.c b/main.c index db9f2b8..9d9c5f3 100644 --- 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();