Gcc Plugin - C++ static initializers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

How can I identify if a function is the initializer for the static
variables of my class on my plugin?

When I look at the intermediate files of a gcc compilation I get
something like this:


;; Function (static initializers for src/core/MyClass.cpp)
(_GLOBAL__sub_I__ZN7test3Gic8int_distE, funcdef_no=50, decl_uid=5333,
cgraph_uid=45, symbol_order=126) (executed once)

... (function body) ...


The thing is that I need to identify this type of function because
I've a different kind of processing in my plugin for the static
initializers. Somehow I do not seem have no find anything which can
identify them.

Thanks.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux