------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-15
17:36 -------
Here is another testcase:
typedef struct {} spinlock_t;
struct sk_buff_head {
int i;
spinlock_t lock;
};
struct sk_buff_head audit_skb_queue;
void audit_init(void)
{
struct sk_buff_head *list = &audit_skb_queue;
spinlock_t a = {};
audit_skb_queue.lock = a;
}The gimplifier is emitting the "audit_skb_queue.lock = a;" which is what is causing the issue. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23402
