Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#81 __restrict__ not handled

closed-fixed
nobody
5
2007-11-30
2007-11-29
Jon Rafkind
No

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__
#else
#warning No restrict keyword?
#define restrict
#endif
#endif

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);

Discussion

  • Matt Harren
    Matt Harren
    2007-11-30

    Logged In: YES
    user_id=1278428
    Originator: NO

    Added. Thanks!

    Matt

     
  • Matt Harren
    Matt Harren
    2007-11-30

    • status: open --> closed-fixed