This is the mail archive of the gcc@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: question on semantics


On Wed, May 04, 2005 at 04:15:41PM -0400, Diego Novillo wrote:

> Same reply I gave you before.  As long as the address of your
> shared memory is outside of the function and the pointer is
> itself a global variable or gets its value from the heap, then
> calls to functions that cannot be inlined will be considered to
> clobber dereferences to the pointer.
> 
In your specific case, the pointer will have to be a global
variable (not static, but truly global).  The calls to
lock/unlock will not take the pointer nor the shared variable as
arguments, so GCC will get too smart for your taste.


Diego.


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