Re: [PATCH] Fix PR 49671 volatile goes missing after inlining

2011-07-25 Thread Andrew Pinski
On Mon, Jul 25, 2011 at 2:05 AM, Richard Guenther wrote: > On Mon, Jul 25, 2011 at 1:34 AM, Andrew Pinski wrote: >> Hi, >>  There are two issues, first the inliner does not copy a volatile >> when creating a new tree in one case.  The second issue is that >> IPA-SRA does not check if we are defer

Re: [PATCH] Fix PR 49671 volatile goes missing after inlining

2011-07-25 Thread Richard Guenther
On Mon, Jul 25, 2011 at 1:34 AM, Andrew Pinski wrote: > Hi, >  There are two issues, first the inliner does not copy a volatile > when creating a new tree in one case.  The second issue is that > IPA-SRA does not check if we are deferencing a pointer variable via a > volatile type. > > OK?  Bootst

[PATCH] Fix PR 49671 volatile goes missing after inlining

2011-07-24 Thread Andrew Pinski
Hi, There are two issues, first the inliner does not copy a volatile when creating a new tree in one case. The second issue is that IPA-SRA does not check if we are deferencing a pointer variable via a volatile type. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. Thanks,