From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10153 invoked by alias); 9 Nov 2010 21:30:06 -0000 Received: (qmail 10042 invoked by uid 22791); 9 Nov 2010 21:30:05 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Tue, 09 Nov 2010 21:29:59 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46401] New: [4.5/4.6 Regression] very slow compile time with -Wsequence-point X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 09 Nov 2010 21:30: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-11/txt/msg01206.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46401 Summary: [4.5/4.6 Regression] very slow compile time with -Wsequence-point Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Created attachment 22356 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22356 reduced testcase Compiler output - 4.4.5: $ time gcc-4.4.5 -Wsequence-point -c testcase.C real 0m0.514s user 0m0.470s sys 0m0.030s Compiler output - 4.5.1: (disabled checking) $ time gcc-4.5.1 -Wsequence-point -c testcase.C real 4m22.328s user 4m21.230s sys 0m0.250s Compiler output - r166492: (enabled checking) $ time gcc -Wsequence-point -c testcase.C real 6m2.734s user 6m2.090s sys 0m0.300s Compiler output - r166492 without -Wsequence-point: $ time gcc -c testcase.C real 0m0.699s user 0m0.520s sys 0m0.050s The time needed to analyze sequence points grew a lot in 4.5 for attached testcase. The problem is more likely to appear since -Wsequence-point is enabled by -Wall. The reduced testcase is from 'cantor', a KDE application.