This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/42803] [4.4/4.5 Regression] c++ compilation hang
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2010 16:57:05 -0000
- Subject: [Bug middle-end/42803] [4.4/4.5 Regression] c++ compilation hang
- References: <bug-42803-16054@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jakub at gcc dot gnu dot org 2010-01-19 16:57 -------
Created an attachment (id=19657)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19657&action=view)
gcc45-pr42803.patch
Alternative patch, which should avoid exponential behavior in all cases (even
when there are casts that narrowing_initializer_constant_valid_p skips).
POINTER_PLUS_EXPR/PLUS_EXPR/MINUS_EXPR/CONSTRUCTOR seem to be the only ones
where initializer_constant_valid_p recurses more than once, so I think it is
enough to cache those.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42803