Re: Correct way to express to the compiler "this does not get clobbered"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Earnshaw <Richard.Earnshaw@xxxxxxxxxxxx> writes:

[...]

> Perhaps you could declare y with the restrict qualifier?  But that would
> need to apply to all of *y, not just fun_ptr.

Having it applied to all *y would be perfect to me.

Unfortunatelly declaring y as:

x_t  * __restrict__ y = x;

does not influence the generated code :/

I though restrict is for pointer aliasing, maybe does not cover function
call clobbering?

  Andrea



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux