From 554643358bda34f8ec1811d2b16853f4032ce31d Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 2 May 2012 09:57:08 +0200 Subject: [PATCH] detect function-unique temps --- misc/tools/progs-analyzer.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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{$_}; -- 2.39.2