This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/25468] [4.0/4.1/4.2 Regression] -g makes g++ loop forever
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2006 11:51:31 -0000
- Subject: [Bug debug/25468] [4.0/4.1/4.2 Regression] -g makes g++ loop forever
- References: <bug-25468-1902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from steven at gcc dot gnu dot org 2006-07-23 11:51 -------
Consider these lines in elfos.h:ASM_OUTPUT_ASCII:
\
for (p = _ascii_bytes; p < limit && *p != '\0'; p++) \
continue; \
\
Now take a string of 40000+ characters with no '\0' terminator. This will
trigger quadratic behavior. We'll go look for a 0 terminator thousands of time
and not find it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25468