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]

restrict vs. __restrict__ (gcc 4.8)


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" --------
========================================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]