pgCC can't compile code while pgcc can

I have a header file with the following code:

typedef unsigned int t_dbl __attribute__((mode(TI)));

This compiles fine with pgcc. However, with pgCC I get the following error:


there is no type with the width specified
      typedef unsigned int t_dbl __attribute__((mode(TI)));
                                                ^

Is this a compiler bug? (PGI 10.2)

Upon further investigation, pgcc -P reveals that attribute((mode(TI))) is just stripped away…

More than one system header file #define attribute as an empty string.

for example,
/usr/include/error.h:
#define attribute (Spec) /* empty */

pgcc and pgCC have different predefines that affect header compilation.
You would need to track down your specfic case.