Pointless use of restrict

Marcus Clyne maccaday@gmail.com
Mon Aug 17 09:52:00 GMT 2009


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.



More information about the Gcc-help mailing list