This is the mail archive of the gcc-help@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]

Pointless use of restrict


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]