Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.2.1
-
None
-
gcc 4.3.0
-
Inefficiency
Description
Compiling exception.cpp with gcc 4.3 causes the warnings below. We should outline the virtual dtors to reduce the code bloat.
gcc -c -I/home/sebor/stdcxx-4.2.1/include/ansi -pthread -I/home/sebor/stdcxx-4.2.1/include -I/build/sebor/stdcxx-4.2.1-gcc-4.3.0-12D/include -pedantic -nostdinc++ -O2 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align -g -pg -fPIC /home/sebor/stdcxx-4.2.1/src/exception.cpp /home/sebor/stdcxx-4.2.1/include/rw/_iosfailure.h: In function 'void __rw::__rw_throw_exception(int, char*)': /home/sebor/stdcxx-4.2.1/include/rw/_iosfailure.h:63: warning: inlining failed in call to 'virtual __rw::__rw_failbit_set::~__rw_failbit_set() throw ()': call is unlikely and code size would grow /home/sebor/stdcxx-4.2.1/src/exception.cpp:715: warning: called from here /home/sebor/stdcxx-4.2.1/include/rw/_iosfailure.h:63: warning: inlining failed in call to 'virtual __rw::__rw_failbit_set::~__rw_failbit_set() throw ()': call is unlikely and code size would grow /home/sebor/stdcxx-4.2.1/src/exception.cpp:715: warning: called from here /home/sebor/stdcxx-4.2.1/include/rw/_iosfailure.h:59: warning: inlining failed in call to 'virtual __rw::__rw_badbit_set::~__rw_badbit_set() throw ()': call is unlikely and code size would grow /home/sebor/stdcxx-4.2.1/src/exception.cpp:719: warning: called from here /home/sebor/stdcxx-4.2.1/include/rw/_iosfailure.h:59: warning: inlining failed in call to 'virtual __rw::__rw_badbit_set::~__rw_badbit_set() throw ()': call is unlikely and code size would grow /home/sebor/stdcxx-4.2.1/src/exception.cpp:719: warning: called from here /home/sebor/stdcxx-4.2.1/include/rw/_iosfailure.h:61: warning: inlining failed in call to 'virtual __rw::__rw_eofbit_set::~__rw_eofbit_set() throw ()': call is unlikely and code size would grow /home/sebor/stdcxx-4.2.1/src/exception.cpp:723: warning: called from here /home/sebor/stdcxx-4.2.1/include/rw/_iosfailure.h:61: warning: inlining failed in call to 'virtual __rw::__rw_eofbit_set::~__rw_eofbit_set() throw ()': call is unlikely and code size would grow /home/sebor/stdcxx-4.2.1/src/exception.cpp:723: warning: called from here