From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117170 invoked by alias); 15 Apr 2015 13:41:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 117128 invoked by uid 48); 15 Apr 2015 13:40:58 -0000 From: "d.v.a at ngs dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/60936] [4.9/5/6 Regression] Binary code bloat with std::string Date: Wed, 15 Apr 2015 13:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: d.v.a at ngs dot ru X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg01221.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60936 --- Comment #9 from __vic --- For 4.9 this change was enough for me: --- libstdc++-v3/src/c++11/functexcept.cc 2014-01-03 02:30:10.000000000 +0400 +++ libstdc++-v3/src/c++11/functexcept.cc 2014-11-06 18:40:20.000000000 +0300 @@ -89,6 +89,7 @@ void __throw_out_of_range_fmt(const char* __fmt, ...) { + __throw_out_of_range(__fmt);/* const size_t __len = __builtin_strlen(__fmt); // We expect at most 2 numbers, and 1 short string. The additional // 512 bytes should provide more than enough space for expansion. @@ -100,6 +101,7 @@ __gnu_cxx::__snprintf_lite(__s, __alloca_size, __fmt, __ap); _GLIBCXX_THROW_OR_ABORT(out_of_range(_(__s))); va_end(__ap); // Not reached. +*/ } void But now it doesn't solve the problem.