This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/46401] [4.5/4.6 Regression] very slow compile time with -Wsequence-point


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]