Re: address taken problem

2008-04-11 Thread Jim Wilson
Dasarath Weeratunge wrote: In the following code I marked the tree 'node.0' as address taken using 'c_mark_addressable'. Now in the assembly code, isn't the return value of the second call to malloc completely discarded? c_mark_addressable is meant to be called during parsing. It may affect

address taken problem

2008-04-10 Thread Dasarath Weeratunge
In the following code I marked the tree 'node.0' as address taken using 'c_mark_addressable'. Now in the assembly code, isn't the return value of the second call to malloc completely discarded? This problem does not arise in -O0. Here I'm using -O2. main () { void * D.2897; struct node *