Use of -Og generates code that is hard to debug

XMLWordPrintable

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

      The documentation of -Og states that several optimizations are not performed. Examples include no function inlining, and no value propagation. The idea is to optimize, but not to the point of making debug difficult.

      The attached source code has a static function and a static structure. Build it.

      $ tiarmclang @options.txt -S file.c
      

      Inspect the generated assembly in file.s. The call to the static function is inlined. The static structure is eliminated.

      Please see the related forum thread for further context.

            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-4207 - Use of -Og generates code that is h...
                SYNCHRONIZED
                • Last Sync Date: