Re: Array of pointers to global data

2013-02-02 Thread Matt Davis
I just wanted to post an update, mainly that I have solved my problem :-) A bit more on this follows below... On Sat, Feb 2, 2013 at 12:01 PM, Matt Davis wrote: > Thanks Ian, Richard. > I have some modified code which seems to be along the same lines as > what you all suggested. However, I am s

Re: Array of pointers to global data

2013-02-01 Thread Matt Davis
Thanks Ian, Richard. I have some modified code which seems to be along the same lines as what you all suggested. However, I am still having troubles. Mainly, I see the array in the callee but the contents are still empty, and I verified by looking at the asm dump of the resulting code. On Fri, F

Re: Array of pointers to global data

2013-02-01 Thread Richard Biener
On Fri, Feb 1, 2013 at 5:03 AM, Matt Davis wrote: > Hello, > I have a routine that creates a local array containing pointers to > global data. At runtime, when this array is passed to a function, I > do not see the pointers to the global objects. The GIMPLE does show > that the array is declared

Re: Array of pointers to global data

2013-01-31 Thread Ian Lance Taylor
On Thu, Jan 31, 2013 at 8:03 PM, Matt Davis wrote: > > decl = create_tmp_var(type, "testarray"); > DECL_INITIAL(decl) = build_constructor(type, entries); > > return decl; Do you ever create a DECL_EXPR statement for this local variable? Ian

Array of pointers to global data

2013-01-31 Thread Matt Davis
Hello, I have a routine that creates a local array containing pointers to global data. At runtime, when this array is passed to a function, I do not see the pointers to the global objects. The GIMPLE does show that the array is declared with the addresses of the globals as the elements to the arr