Function that uses interrupt_save_fp attribute still sees warning that says to use it

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Not Prioritized

      The attached function has these lines ...

      __attribute__((target("arm"), interrupt("SWI")))
      __attribute__((interrupt_save_fp))
      void handler(void)
      {
      }
      

      Note it uses the interrupt_save_fp attribute. Build it ...

      % tiarmclang -mcpu=cortex-r5 -c file.c
      file.c:3:6: warning: interrupt service routine with vfp enabled may clobber the
            interruptee's vfp state; consider using the `interrupt_save_fp` attribute
            to prevent this behavior [-Warm-interrupt-vfp-clobber]
          3 | void handler(void)
            |      ^
      1 warning generated.
      

            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-6751 - Function that uses interrupt_save_f...
                SYNCHRONIZED
                • Last Sync Date: