This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
restrict vs. __restrict__ (gcc 4.8)
- From: Ian Pilcher <arequipeno at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 17 Jul 2017 09:13:42 -0500
- Subject: restrict vs. __restrict__ (gcc 4.8)
- Authentication-results: sourceware.org; auth=none
I just discovered that gcc 4.8 (on CentOS 7) does not support the C99
restrict keyword, at least not without -std=c99.
__restrict__ seems to work (in the sense that it compiles without
errors), but I haven't been able to find anything that describes exactly
what the difference between __restrict__ and restrict is (if any).
Am I safe simply replacing restrict with __restrict__? (I can't easily
use -sdt=c99, because it seems to disable the typeof operator.)
--
========================================================================
Ian Pilcher arequipeno@gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================