This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Declare a variable which can be incremented by all of the functions
- From: Qiong Cai <qiong dot cai at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 17 Jul 2004 23:18:44 +1000
- Subject: Declare a variable which can be incremented by all of the functions
Hi,
I'd like to declare a variable which can be incremented by all of the
functions in a program.
The variable is declared in "basic-block.h", initialized in
"toplev.c", and incremented in several RTL passes. However, this only
works for the functions in one .c file.
The variable is always intitailzied to zero when a new .c file is compiled.
Is there any solution for this problem?
Thanks.
--
Qiong Cai
www.cse.unsw.edu.au/~qiongc