Re: [Bug tree-optimization/40844] New: O2 optimizes out assignment to bitfield

2009-07-23 Thread Andrew Pinski
Sent from my iPhone On Jul 23, 2009, at 10:22 PM, "jim at bodwin dot us" > wrote: Incorrect code is produced for the following source with the O2 option. In particular, the assignment to the bitfield field2 is optimized out of the code entirely and regImage is left all zero. Correct cod

[Bug tree-optimization/40844] New: O2 optimizes out assignment to bitfield

2009-07-23 Thread jim at bodwin dot us
Incorrect code is produced for the following source with the O2 option. In particular, the assignment to the bitfield field2 is optimized out of the code entirely and regImage is left all zero. Correct code is produced with the O1 option and (at least) with gcc version 4.3.2. ===