From: Rudolf Polzer Date: Wed, 2 May 2012 07:57:08 +0000 (+0200) Subject: detect function-unique temps X-Git-Tag: xonotic-v0.7.0~55^2~28 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=554643358bda34f8ec1811d2b16853f4032ce31d detect function-unique temps --- diff --git a/misc/tools/progs-analyzer.pl b/misc/tools/progs-analyzer.pl index b43c3453..6b8c0063 100644 --- a/misc/tools/progs-analyzer.pl +++ b/misc/tools/progs-analyzer.pl @@ -958,7 +958,11 @@ sub detect_constants($) { $globaltypes[$_] = "global"; } - elsif(($globalflags[$_] & (GLOBALFLAG_S | GLOBALFLAG_I)) == 0) + elsif(($globalflags[$_] & (GLOBALFLAG_S | GLOBALFLAG_I | GLOBALFLAG_Q)) == GLOBALFLAG_Q) + { + $globaltypes[$_] = "uniquetemp"; + } + elsif(($globalflags[$_] & (GLOBALFLAG_S | GLOBALFLAG_I | GLOBALFLAG_Q)) == 0) { $globaltypes[$_] = "temp"; ++$istemp{$_};