This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46401] [4.5/4.6 Regression] very slow compile time with -Wsequence-point
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Nov 2010 16:21:13 +0000
- Subject: [Bug c++/46401] [4.5/4.6 Regression] very slow compile time with -Wsequence-point
- Auto-submitted: auto-generated
- References: <bug-46401-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46401
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-15 16:21:11 UTC ---
Created attachment 22401
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22401
gcc46-pr46401.patch
Untested fix.
No point tracking CALL_EXPRs that aren't ECF_CONST (because then
operand_equal_p fails anyway) nor STRING_CSTs (which can't be written into).
That said, -Wsequence-point algorithm is still quadratic (certainly in used
memory, and at least quadratic in compilation time).