This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: initializing a VAR_DECL...
- To: jeffsix at thecouch dot ncsc dot mil (Jeffrey A. Six)
- Subject: Re: initializing a VAR_DECL...
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Wed, 18 Jul 2001 21:46:59 +0100 (BST)
- Cc: gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
> time" when I try to compile I program with this mod. So...my question
> is...how do I initialize a VAR_DECL to an initial value? What should I put
> as the second argument passed to store_init_value()?
Initializers usually have some kind of type information attached.
I suggest that you write an small C pprogram that contains an
initialization and use gdb to watch what store_init_value is being
passed, and how it uses the value.