Pointless use of restrict

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

 



Hi,

Am I right in saying that defining a function like

func_name (my_type_t * __restrict);

is pointless, because there are no other pointers that the pointer could overlap with?

Can anyone explain what GCC does differently for the two following definitions:

func1 (my_type_t * __restrict, my_type_t *__restrict);

AND

func2 (my_type_t *, my_type_t *);

?

Thanks,

Marcus.

[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