Re: GIMPLE Question

2011-02-25 Thread Kyle Girard
On Fri, 2011-02-25 at 19:57 +, Dave Korn wrote: > On 25/02/2011 19:21, Kyle Girard wrote: > > > I was hoping to see the assignment. > > > Looking at the gimple output there is no way to see that 'a' was > > assigned in bar(). So that it can be used in wik(). Am I > > misunderstanding someth

Re: GIMPLE Question

2011-02-25 Thread Joe Buck
On Fri, Feb 25, 2011 at 11:33:58AM -0800, Andrew Pinski wrote: > On Fri, Feb 25, 2011 at 11:21 AM, Kyle Girard wrote: > > > >>   That *is* the content of the bar method.  What exactly do you expect to > >> see > >> happening when you assign a class with no members?  There's nothing to do! > > > >

Re: GIMPLE Question

2011-02-25 Thread Dave Korn
On 25/02/2011 19:21, Kyle Girard wrote: > I was hoping to see the assignment. > Looking at the gimple output there is no way to see that 'a' was > assigned in bar(). So that it can be used in wik(). Am I > misunderstanding something shouldn't there be a way to see the > assignment in bar? Do I

Re: GIMPLE Question

2011-02-25 Thread Andrew Pinski
On Fri, Feb 25, 2011 at 11:21 AM, Kyle Girard wrote: > >>   That *is* the content of the bar method.  What exactly do you expect to see >> happening when you assign a class with no members?  There's nothing to do! > > > I was hoping to see the assignment.  My example might have been a little > too

Re: GIMPLE Question

2011-02-25 Thread Kyle Girard
> That *is* the content of the bar method. What exactly do you expect to see > happening when you assign a class with no members? There's nothing to do! I was hoping to see the assignment. My example might have been a little too simple. Here's a slightly more complex example: foo.hh clas

Re: GIMPLE Question

2011-02-25 Thread Dave Korn
On 25/02/2011 15:20, Kyle Girard wrote: > foo.hh > == > > class A > { > }; > > class foo > { > A a; > public: > void bar(A & aa); > }; > > > foo.cc > == > > #include "foo.hh" > > void foo::bar(A & aa) > { > a = aa; > } > > > However the gimple generated via g++-4.5 -c -fdum

GIMPLE Question

2011-02-25 Thread Kyle Girard
I have the following code: foo.hh == class A { }; class foo { A a; public: void bar(A & aa); }; foo.cc == #include "foo.hh" void foo::bar(A & aa) { a = aa; } However the gimple generated via g++-4.5 -c -fdump-tree-gimple foo.cc is this: void foo::bar(A&) (struct foo * co