Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-1036

[gcc 4.4] -Winline warning on std::ios_base::_C_usr_data::_C_alloc()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 4.2.1
    • 4.2.2
    • Build and Installation
    • None
    • gcc 4.4.0

    • Compiler Warning

    Description

      Compiling iostore.cpp with gcc 4.4.0 (but not 4.3) yields the following warning:

      gcc -c -I/home/sebor/tmp/stdcxx-4.2.x/include/ansi   -pthread -I/home/sebor/tmp/stdcxx-4.2.x/include -I/build/sebor/tmp/stdcxx-4.2.x/gcc-4.4.0-12D/include  -pedantic -nostdinc++ -O2   -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align  -fPIC  /home/sebor/tmp/stdcxx-4.2.x/src/iostore.cpp
      /home/sebor/tmp/stdcxx-4.2.x/src/iosdata.h: In member function 'void*& std::ios_base::pword(int)':
      /home/sebor/tmp/stdcxx-4.2.x/src/iosdata.h:73: warning: inlining failed in call to 'static std::ios_base::_C_usr_data* std::ios_base::_C_usr_data::_C_alloc(void (std::ios_base::*)(std::ios_base::event, bool))': call is unlikely and code size would grow
      /home/sebor/tmp/stdcxx-4.2.x/src/iostore.cpp:403: warning: called from here
      /home/sebor/tmp/stdcxx-4.2.x/src/iosdata.h: In member function 'void std::ios_base::register_callback(void (*)(std::ios_base::event, std::ios_base&, int), int)':
      /home/sebor/tmp/stdcxx-4.2.x/src/iosdata.h:73: warning: inlining failed in call to 'static std::ios_base::_C_usr_data* std::ios_base::_C_usr_data::_C_alloc(void (std::ios_base::*)(std::ios_base::event, bool))': call is unlikely and code size would grow
      /home/sebor/tmp/stdcxx-4.2.x/src/iostore.cpp:436: warning: called from here
      /home/sebor/tmp/stdcxx-4.2.x/src/iosdata.h: In member function 'long int& std::ios_base::iword(int)':
      /home/sebor/tmp/stdcxx-4.2.x/src/iosdata.h:73: warning: inlining failed in call to 'static std::ios_base::_C_usr_data* std::ios_base::_C_usr_data::_C_alloc(void (std::ios_base::*)(std::ios_base::event, bool))': call is unlikely and code size would grow
      /home/sebor/tmp/stdcxx-4.2.x/src/iostore.cpp:373: warning: called from here
      

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: