Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8902

Structure field reference directly from function call causes INTERNAL ERROR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-4791
    • Hide
      PRU_2.2.0
       C6000_8.2.0
       C6000_8.1.0B1
      Show
      PRU_2.2.0  C6000_8.2.0  C6000_8.1.0B1
    • Hide
      C6000_8.2.4
       C6000_8.1.8
       C2000_16.9.9.LTS
      Show
      C6000_8.2.4  C6000_8.1.8  C2000_16.9.9.LTS
    • Hide
      Compile with any value of --opt_level except "off".

      Or, given the expression f().x, change it to "t=f(); t.x"; in other word, capture the struct returned from the function call in a variable, and make the field reference from that variable instead of directly from the function call.
      Show
      Compile with any value of --opt_level except "off". Or, given the expression f().x, change it to "t=f(); t.x"; in other word, capture the struct returned from the function call in a variable, and make the field reference from that variable instead of directly from the function call.
    • Compiling an expression like f().x -- a function call immediately used to make a structure field reference -- can cause the compiler to abort with INTERNAL ERROR. Any use of the optimiser, or a simple code rearrangement, avoids the problem.

      Structure field reference directly from function call causes INTERNAL ERROR

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

              Created:
              Updated:
              Resolved: