The top program from procps defines restrict as __restrict__ in proc/procps.h
#if !defined(restrict) && __STDC_VERSION__ < 199901
#if __GNUC__ > 2 || __GNUC_MINOR__ >= 92
#define restrict __restrict__
#warning No restrict keyword?
But cil currently does not recognize __restrict__. The addition of __restrict__ to the frontc clexer solves this issue.
(*** weimer: GCC arcana ***)
("__restrict", fun loc -> RESTRICT loc);
("__restrict__", fun loc -> RESTRICT loc);
("restrict", fun loc -> RESTRICT loc);
Log in to post a comment.