Re: Incorrect optimized (-O2) linked list code with 4.3.2

2011-09-23 Thread Richard Guenther
On Mon, Sep 12, 2011 at 10:10 AM, pavan tc wrote: > Hi, > > I would like to know if there have been issues with optimized linked > list code with GCC 4.3.2. [optiimization flag : -O2] > > The following is the inlined code that has the problem: > > static inline void > list_add_tail (struct list_he

Incorrect optimized (-O2) linked list code with 4.3.2

2011-09-12 Thread pavan tc
Hi, I would like to know if there have been issues with optimized linked list code with GCC 4.3.2. [optiimization flag : -O2] The following is the inlined code that has the problem: static inline void list_add_tail (struct list_head *new, struct list_head *head) { new->next = head;