public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC Plugin: Initialize an Array Global Variable
@ 2014-08-01 19:14 Stephan Friedl
  2014-08-01 23:14 ` Stephan Friedl
  0 siblings, 1 reply; 2+ messages in thread
From: Stephan Friedl @ 2014-08-01 19:14 UTC (permalink / raw)
  To: gcc-help

I am implementing a GCC Plugin to perform some simple operations, one of which is to create and initialize global variables.  I have this working for fundamental values and for creating class instances and then invoking their constructor with appropriate arguments during static initialization.

What currently has me stalled is initializing global array variables.  I can create the variables but have not yet uncovered how to initialize them.  I have tried calling DECL_INITIAL with references to array locations but that does not appear to work.

Can anybody give me some insight into how to initialize a global array and/or point me to some example code?

Thanks,

Stephan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-01 23:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-01 19:14 GCC Plugin: Initialize an Array Global Variable Stephan Friedl
2014-08-01 23:14 ` Stephan Friedl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).