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] Tree SRA and atomicity/volatility


> The problem is really that the middle-end doesn't have a good
> definition of volatile semantics on a structure.  At least not what
> you want from it.

As was discussed in another thread a while ago, the middle-end doesn't wreally
have a good definition of volatile semantics AT ALL: a lot of it is just "do
what we used to do".

My feeling is that the proper semantics of volatile are that the access
pattern in the generated code should match, as closely as the underlying
machine allows, the access pattern in the source.  Unfortunately, this is an
informal, and hence necessarily imprecise, definition, but I think it might
be the best we can do.  It's certainly consistent with past practice.


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