Compiler generates infinite loop in memset with -O1 or higher and -fno-inline-functions

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium

      When the compiler is instructed to not inline functions with the -fno-inline-functions option, and is also instructed to optimize the program via -O1 or higher, certain circumstances may cause a local copy of the standard library "memset" function to generate erroneous code.

      This code contains a call to 'memset' from within memset, meaning that the program will enter an infinite loop.

      As a temporary workaround, pass the custom flag '-U_INLINE' to the compiler to avoid the problem.

            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-6071 - Compiler generates infinite loop in...
                SYNCHRONIZED
                • Last Sync Date: