From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2912 invoked by alias); 30 Oct 2010 16:00:31 -0000 Received: (qmail 2895 invoked by uid 22791); 30 Oct 2010 16:00:30 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 30 Oct 2010 16:00:27 +0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46228] code produced for STL container is worse in 4.5.1 than in 4.4.5 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 30 Oct 2010 16:00:00 -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 X-SW-Source: 2010-10/txt/msg02591.txt.bz2 Message-ID: <20101030160000.3QbfJFwL5wWkzxDDW4wzjBTOkyA8-6pTkFSbqy7NsKo@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46228 --- Comment #8 from Jan Hubicka 2010-10-30 16:00:12 UTC --- and BTW -Os also reason why -finline-limits has no effect. As long as we predict code size to grow, we won't inline at -Os. We tend to regress at -Os C++ for this reason. I wonder what can be done about this. Either - we need to improve heuristics to figure out that inlining is smaller than call sequence (if it really is) - we need to teach GCC that comdat functions are not always shared across units as extensively as we tend to believe now. I will take more look tomorrow. Honza