This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

__builtin_constant_p not supported



Hi,

I would like to use __builtin_constant_p from the GCC Language Extensions with the C2000 compiler, to have constant-folding on expressions performed when possible. According to chapter 6.15.5 "Built-In Functions" from C/C++ Compiler User's Guide SPRU514G, this is supported when using --gcc.

But I get:

Error #1494: builtin function __builtin_constant_p not supported

Am I missing something?

Thanks
Felix

  • I filed SDSCM00050763 in the SDOWP system to have this investigated.  Feel free to follow it with the SDOWP link below in my signature.  I suspect the compiler should support it.  But it is also possible the documentation is wrong.

    Thanks and regards,

    -George