This is the mail archive of the
mailing list for the GCC project.
Re: Volatile MEMs in statement expressions and functions inlined astrees
- From: Linus Torvalds <torvalds at transmeta dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: <aoliva at redhat dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 6 Dec 2001 15:37:05 -0800 (PST)
- Subject: Re: Volatile MEMs in statement expressions and functions inlined astrees
On 7 Dec 2001, Andreas Schwab wrote:
> 6.5.15 [#3] ... An assignment expression has the value of the left operand
> after the assignment, ...
> For me this implies that a volatile object must be reloaded.
Hmm.. I would tend to think that it just means that the left side
determines the type, ie
i = c = 256;
must obviously assign 0 to 'i' on most architectures, because that is the
value we actually _assigned_ to 'c'.
So clearly we cannot assign the right side value, and that is, I think,
what the meaning of the "value of the assigned" means.