Incorrectly issues ULP 8.1 diagnostic

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-1297
    • Hide
      MSP430_4.4.8
       MSP430_15.12.2.LTS
      Show
      MSP430_4.4.8  MSP430_15.12.2.LTS
    • Hide
      MSP430_4.4.8
       MSP430_15.12.4.LTS
      Show
      MSP430_4.4.8  MSP430_15.12.4.LTS
    • N/A.
    • Hide
      The compiler throws an invalid ULP 8.1 diagnostic in the case below:

      % type try1.c
       void test2(char buffer[5])
      { buffer[0] = 'A'; }
      void test(void)
       {
       char buf[5] =
      { 0 }
      ;
       test2(buf);
       }

      % cl430 --advice:power try1.c
       "try1.c", line 8: remark: (ULP 8.1) variable "buf" is used as a constant. Recommend declaring variable as either 'static const' or 'const'
      Show
      The compiler throws an invalid ULP 8.1 diagnostic in the case below: % type try1.c  void test2(char buffer[5]) { buffer[0] = 'A'; } void test(void)  {  char buf[5] = { 0 } ;  test2(buf);  } % cl430 --advice:power try1.c  "try1.c", line 8: remark: (ULP 8.1) variable "buf" is used as a constant. Recommend declaring variable as either 'static const' or 'const'

      Incorrectly issues ULP 8.1 diagnostic

            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-588 - Incorrectly issues ULP 8.1 diagnostic
                SYNCHRONIZED
                • Last Sync Date: