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] Fix PR middle-end/26306


Richard Kenner wrote:
>>> +If it is a scalar type, or an aggregate type whose only member object is
>>> +of a scalar type, or a union type whose member objects are of scalar types,
>>> +the expression is interpreted by GCC as a read of the volatile object; in
>>> +the other cases, the expression is only evaluated for its side-effects.
>> Is that true on all platforms?  Are there no platforms where "long
>> long", or a structure containing that, gets BLKmode?
> 
> There are no platforms where "long long" is BLKmode.  There might be
> some with a struct containing only that being BLKmode, but I don't think
> we need to worry about being that precise.

In that case, I think that we should insert an "on most targets" clause
somewhere.  That puts users on alert that these semantics may not be
100% the same on all systems.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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