inline virtual dtors causing code bloat in exception.cpp
--------------------------------------------------------
Key: STDCXX-913
URL: https://issues.apache.org/jira/browse/STDCXX-913
Project: C++ Standard Library
Issue Type: Bug
Components: 27. Input/Output
Affects Versions: 4.2.1
Environment: gcc 4.3.0
Reporter: Martin Sebor
Assignee: Martin Sebor
Priority: Minor
Fix For: 4.2.2
Compiling
[{{exception.cpp}}|http://svn.apache.org/viewvc/stdcxx/tags/4.2.1/src/exception.cpp?view=markup]
with gcc 4.3 causes the warnings below. We should outline the virtual dtors to
reduce the code bloat.
{noformat}
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
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.