Hi Experts,
Is there a way in the Source file to add Custom Notification Message when "--gcc" option is not selected in the compiler settings... Thanks!
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.
No, I don't think there is a way. Most likely, the best you will be able to do is to use some syntax which is only valid in GCC mode, and let the compiler emit a syntax error when it is not in GCC mode.
Why do you need to know if you are in GCC mode specifically? If the compiler accepts your program, isn't that enough?
The behavior of the --gcc option varies slightly between old and new releases. Which release are you trying to use? Which GCC extensions are you using?
Unfortunately, no. It may seem possible to use the compiler defined preprocessor symbol __TI_GNU_ATTRIBUTE_SUPPORT__ for this purpose. However, the compiler does not define this symbol in the expected manner. That being the case, I filed SDSCM00051155 in the SDOWP system. That will cause this issue to be investigated and addressed. Feel free to follow it with the SDOWP link below in my signature.
Thanks and regards,
-George