https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61782

            Bug ID: 61782
           Summary: always_inline incorrectly documented
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: web
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daniel.santos at pobox dot com

The current behavior of __attribute__((always_inline)) is to not only inline in
-O0, but also to force inlining even when -finline-limit is exceeded. However,
the documentation states that it will only cause inlining w/o optimizations:

https://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#index-g_t_0040code_007balways_005finline_007d-function-attribute-2864

We had some discussion about this in LKML some time back and I meant to file a
bug report back then, but just remembered. This should be updated to reflect
the current behavior of always_inline.

Reply via email to