This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]