This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Preserve volatileness, fix PR32721


On 7/13/07 9:02 AM, Richard Guenther wrote:

>   volatile int *x;
> 
> is a declaration of a pointer _to_ a volatile int.  So

My confusion, then.  I read that as a 'volatile pointer to an int'.
I thought that 'pointer to a volatile int' would be 'int * volatile x'

>   *x
> 
> is an access to a volatile int.

OK, if that's the case then I have no problems with the patch.


Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]