Intel compiler 2018 syntax change

205 Views Asked by At

I'm evaluating IC 2018, while normally working with IC 2016 & MSVC & CLANG. IC 2018 seems not to cope with several things.

First it doesn't like _Pragma, for instance:

_Pragma("forceinline recursive")

I need that to support multiple compilers like this:

#define MFORCEINLINE    _Pragma("forceinline recursive")

Then it also fails with the keyword restrict (previously used by IC), but it seems that __restrict may work. After the gazillion keywords I gave up. Am I doing something wrong? Mainly with the pragmas, I use a lot of those for various optimization specifications.

0

There are 0 best solutions below