Re: Problem with stores and loads from unions and proposed fix

2010-02-08 Thread Martin Chaney
Richard Guenther wrote: On Sat, Feb 6, 2010 at 3:44 AM, Martin Chaney wrote: This problem showed up in a PDP10 C version of GCC I'm responsible for and took a good while to track down. The fix is in generic gcc code so even though my PDP10 compiler is not an official gcc version and I haven

Re: Problem with stores and loads from unions and proposed fix

2010-02-07 Thread Michael Matz
Hi, On Sat, 6 Feb 2010, Richard Guenther wrote: > > CSE detects that the same subexpression is used in two places and > > substitutes a reaching register for the reference to u32.word without > > noticing that the memory has been modified by the bit field reference. > >  Adding a call to invalida

Re: Problem with stores and loads from unions and proposed fix

2010-02-06 Thread Richard Guenther
On Sat, Feb 6, 2010 at 3:44 AM, Martin Chaney wrote: > This problem showed up in a PDP10 C version of GCC I'm responsible for and > took a good while to track down.  The fix is in generic gcc code so even > though my PDP10 compiler is not an official gcc version and I haven't been > successful at