Compiler optimizes away function which calls assert

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-2214
    • Hide
      ARM_15.12.0.LTS
       ARP32_1.0.0B1
       C6000_7.4.0B1
      Show
      ARM_15.12.0.LTS  ARP32_1.0.0B1  C6000_7.4.0B1
    • Hide
      ARP32_1.1.0*
       PRU_2.1.5
       C6000_8.1.4
       C6000_7.4.22
      Show
      ARP32_1.1.0*  PRU_2.1.5  C6000_8.1.4  C6000_7.4.22
    • Make sure there is some other visible effect in the function -- a call, a use of a volatile variable, something like that.
    • A function whose only visible effect is to call assert() may be optimised away at --opt_level=0 or higher.

      Compiler optimizes away function which calls assert

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-784 - Compiler optimizes away function wh...
                SYNCHRONIZED
                • Last Sync Date: