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.

MSP430 Option --exceptions is ignored

With MSP430 Compiler Version 4.3.3, the Option  --exceptions is ignored.

I set the Option in the Settings Dialog together with  --extern_c_can_throw.

I get the following warning:

           warning #24017-D: Option --extern_c_can_throw is not valid without --exceptions (ignored)

In the commandline the Option is missed, but in the Settingsdialog it is set, but not shown in the summery.

Is this a known Problem?

Is there a Workaround?

Regards

Johannes

  • JDiedrich said:
    Is this a known Problem?

    It appears to be a bug in CCS v6.  Thank you for reporting it to us.  I filed SDSCM00050660 in the SDOWP system to have this investigated.  Feel free to follow it with the SDOWP link below in my signature.

    The problem is that the option --exceptions is correctly used when compiling, but is incorrectly missing when linking.  That results in the invalid diagnostic about --extern_c_can_throw.  

    JDiedrich said:
    Is there a Workaround?

    I have not found a way to avoid the diagnostic.  I'm very confident you can ignore it.  As far as I can tell, the resulting executable is correct in every respect.  In particular, the exceptions handling variant of the compiler RTS library is used.  That is because the linker can determine for itself, without any dependence on build options or CCS, that the object files are built with --exceptions, and thus the --exceptions variant of the RTS library is required.

    Thanks and regards,

    -George

  • Hi Goerge

    Thanks for the fast reply.

    Regards

    Johannes