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: 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

	int i;
	char c;

	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.

		Linus


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