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

Compiler fails with diagnostic >>>> Optimizer terminated abnormally

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-6474
    • Hide
      ARM_18.12.0.LTS
      ARM_20.2.0.beta
      Show
      ARM_18.12.0.LTS ARM_20.2.0.beta
    • Hide
      ARM_18.12.4.LTS
      ARM_20.2.0.beta
      Show
      ARM_18.12.4.LTS ARM_20.2.0.beta
    • default
    • Hide
      The problem involves an unsigned expression in an array subscript. In this test case, the subscript is n-1, where n is of type size_t, which is unsigned. If n is of type int instead, the compiler does not abort; there is a slight difference in the loop-control instructions, but the loop body is equivalent.
      Show
      The problem involves an unsigned expression in an array subscript. In this test case, the subscript is n-1, where n is of type size_t, which is unsigned. If n is of type int instead, the compiler does not abort; there is a slight difference in the loop-control instructions, but the loop body is equivalent.
    • Hide
      In some cases of loops which traverse arrays with a down-counting, unsigned index -- ie, the loop contains x[i], i is unsigned, and the loop does --i -- the compiler may abort. It won't produce incorrect code, it'll either abort or operate correctly.
      Show
      In some cases of loops which traverse arrays with a down-counting, unsigned index -- ie, the loop contains x[i], i is unsigned, and the loop does --i -- the compiler may abort. It won't produce incorrect code, it'll either abort or operate correctly.

      Compiler fails with diagnostic >>>> Optimizer terminated abnormally

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

              Created:
              Updated:
              Resolved: