This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Pointless use of restrict
- From: Marcus Clyne <maccaday at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 17 Aug 2009 00:46:59 +0300
- Subject: 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.