public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "fragabr at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64590] Firefox 34 triggers GCC AVX bug (segfault: XPCCallContext::GetJSContext (this=0xfffc7fffe3e23980)) Date: Wed, 11 Feb 2015 11:06:00 -0000 [thread overview] Message-ID: <bug-64590-4-TPZxC3425k@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-64590-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64590 --- Comment #13 from Dâniel Fraga <fragabr at gmail dot com> --- (In reply to David Baron from comment #12) > The correct changeset that fixed the problem is: > https://hg.mozilla.org/integration/mozilla-inbound/rev/3023f9390942 Yes, thanks! :) >From gcc-bugs-return-476817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 11 11:12:52 2015 Return-Path: <gcc-bugs-return-476817-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31300 invoked by alias); 11 Feb 2015 11:12:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31143 invoked by uid 48); 11 Feb 2015 11:12:46 -0000 From: "marc at kdab dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/60621] std::vector::emplace_back generates massively more code than push_back Date: Wed, 11 Feb 2015 11:12: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.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marc at kdab dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-60621-4-qPYVkBIh7I@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-60621-4@http.gcc.gnu.org/bugzilla/> References: <bug-60621-4@http.gcc.gnu.org/bugzilla/> 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-02/txt/msg01150.txt.bz2 Content-length: 1524 https://gcc.gnu.org/bugzilla/show_bug.cgi?id`621 --- Comment #3 from marc at kdab dot com --- Now, what is _really_ weird is that push_back(T&&) _calls_ emplace_back(). I also tried the magic incantation g++ --param large-unit-insns\x100000000 \ --param inline-unit-growth\x100000000 \ --param max-inline-insns-single\x100000000 \ --param large-function-growth\x100000000 \ --param large-function-insns\x100000000 -O2 to no avail. I can get the two version to within 80 bytes of text of each other by adding -fno-exceptions, so it's probably related to that. The (implicit) move ctor of S cannot throw, but the std::string(const char*) ctor can. Ie. in the rvalue-push_back case, emplace_back only dabbles in noexcept operations, and in the 3xconst char* case, it needs to deal with three throwing ctors. I can reduce the text size to within a few hundreds of bytes by marking both emplace_back and _M_emplace_back_aux as __attribute__((always_inline)), so something prevents gcc from inlining even when turning the inlining paramters all the way up. I can also reduce the text size by passing std::strings instead of conat char*s: text data bss dec hex filename 5628 672 40 6340 18c4 emplace-vs-push_back.eb 4991 672 40 5703 1647 emplace-vs-push_back.nt 4516 648 40 5204 1454 emplace-vs-push_back.pb (where .nt is EMPLACE_BACK_NOTHROW). Still a large gap... Have we accepted another auto_ptr into the standard? :)
prev parent reply other threads:[~2015-02-11 11:06 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-01-13 23:44 [Bug tree-optimization/64590] New: " fragabr at gmail dot com 2015-01-13 23:58 ` [Bug tree-optimization/64590] " pinskia at gcc dot gnu.org 2015-01-13 23:59 ` pinskia at gcc dot gnu.org 2015-01-14 2:19 ` fragabr at gmail dot com 2015-01-14 8:28 ` jakub at gcc dot gnu.org 2015-02-10 9:34 ` fragabr at gmail dot com 2015-02-11 5:31 ` dbaron at dbaron dot org 2015-02-11 11:06 ` fragabr at gmail dot com [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-64590-4-TPZxC3425k@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).