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

Compiler intermittently crashes on switch with 20k cases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-8589
    • Hide
      C7000_1.4.0.LTS
      C6000_8.3.0
      MSP430_20.2.0.LTS
      ARM_18.12.0.LTS
      MSP430_18.12.0.LTS
      PRU_2.3.0
      ARM_20.2.0.LTS
      C2000_18.12.0.LTS
      C2000_20.2.0.LTS
      Show
      C7000_1.4.0.LTS C6000_8.3.0 MSP430_20.2.0.LTS ARM_18.12.0.LTS MSP430_18.12.0.LTS PRU_2.3.0 ARM_20.2.0.LTS C2000_18.12.0.LTS C2000_20.2.0.LTS
    • Hide
      MSP430_18.12.8.LTS
      C2000_20.2.5.LTS
      C2000_18.12.8.LTS
      ARM_20.2.5.LTS
      ARM_18.12.8.LTS
      C7000_1.4.2.LTS
      PRU_2.3.4*
      MSP430_20.2.5.LTS
      C6000_8.3.9
      Show
      MSP430_18.12.8.LTS C2000_20.2.5.LTS C2000_18.12.8.LTS ARM_20.2.5.LTS ARM_18.12.8.LTS C7000_1.4.2.LTS PRU_2.3.4* MSP430_20.2.5.LTS C6000_8.3.9
    • default
    • Rewrite the switch statement as a tree of if statements checking the range of the switch expression.

      The compiler crashed with a stack overflow on input containing a switch statement with a huge number of cases. It is easy to introduce a huge number of cases by using the GNU C case range extension (e.g. case 1000 ... 32767

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

              Created:
              Updated:
              Resolved: