Re: [PATCH] Fix PR52314

2012-02-21 Thread Richard Guenther
On Tue, 21 Feb 2012, Jakub Jelinek wrote: > On Tue, Feb 21, 2012 at 03:06:40PM +0100, Richard Guenther wrote: > > > > The gimplifier, when forcing a value to a temporary, uses the > > type of the value for that temporary variable, making it for > > example volatile or const, or puts it in a diffe

Re: [PATCH] Fix PR52314

2012-02-21 Thread Jakub Jelinek
On Tue, Feb 21, 2012 at 03:06:40PM +0100, Richard Guenther wrote: > > The gimplifier, when forcing a value to a temporary, uses the > type of the value for that temporary variable, making it for > example volatile or const, or puts it in a different address-space > even. That's odd and not requir

[PATCH] Fix PR52314

2012-02-21 Thread Richard Guenther
The gimplifier, when forcing a value to a temporary, uses the type of the value for that temporary variable, making it for example volatile or const, or puts it in a different address-space even. That's odd and not required, we can decay to the main-variant type. Bootstrapped and tested on x86_6