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 as trees


Linus Torvalds <torvalds@transmeta.com> writes:

[...]

| My argument is a consistency argument,

Now, the line of your reasoning moved to what *you* think the
behaviour should be, not something backed up by a formal text.  That
is then another debate.

| where one of the corner stones is
| exactly the fact that _because_ "p = 0" does not load from memory, then "q
| = p = 0" should _also_ not load.
| 
| So I'm asking for _consistency_, nothing more.

>From consistency point of view, the handling of the above should be
consistent with 

	q = p;


[...]

| I'm also claiming that the C++ standard does _not_ require the
| "lvalue->rvalue" conversion to be a dereference, but does, in fact, quite
| clearly allow it to be just the value assigned.

You didn't show anything to that effect backed up by a text from C++
definition.  What you show is your personnal view.

-- Gaby


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