Unusual address arithmetic causes the compiler to crash

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-15072
    • C29_2.1.0.STS
    • default
    • Duplicate of https://sir.ext.ti.com/jira/browse/EXT_EP-13119, to be resolved in upcoming 2.2.0.LTS.

      The following commands show a source file, and the compiler crash when it is built.

      C:\examples>type file.c
      void test(int instance) {
          *((volatile int *)(0x1000 + (instance * 16))) = 0;
      }
      
      C:\examples>c29clang -c file.c
      PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
      Stack dump:
      0.      Program arguments: c29clang -c file.c
      1.      <eof> parser at end of file
      2.      Code generation
      3.      Running pass 'Function Pass Manager' on module 'file.c'.
      4.      Running pass 'Argo DAG->DAG Pattern Instruction Selection' on function '@test'
      Exception Code: 0xC00000FD
      

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

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-6391 - Unusual address arithmetic causes t...
                SYNCHRONIZED
                • Last Sync Date: