Inlining a function does not silence ULP diagnostic 10.1

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low

      The attached source file has these lines ...

      static inline int ifxn()
      {
          return 25;
      }
      
      extern volatile int g;
      __interrupt void isr(void)
      {
         g = ifxn();
      }
      

      Build it with optimization level 0 ...

      % cl430 --advice:power -o0 -s file.c
      "file.c", line 9: remark: (ULP 10.1) ISR isr calls function ifxn. Recommend moving function call away from ISR, or inlining the function, or using pragmas
      

      Inspect the resulting file.asm to see that ifxn is inlined into isr. The advice in the diagnostic is being followed. Therefore, the diagnostic should not be issued.

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

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-3773 - Inlining a function does not silenc...
                SYNCHRONIZED
                • Last Sync Date: