restrict vs. __restrict__ (gcc 4.8)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux