This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/50165] [4.7 Regression] Huge build time regression (Firefox lto build)
- From: "markus at trippelsdorf dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Aug 2011 13:25:33 +0000
- Subject: [Bug lto/50165] [4.7 Regression] Huge build time regression (Firefox lto build)
- Auto-submitted: auto-generated
- References: <bug-50165-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50165
--- Comment #10 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-08-26 13:25:33 UTC ---
(In reply to comment #8)
> Try this:
>
> Index: lto-streamer-in.c
> ===================================================================
> --- lto-streamer-in.c (revision 178040)
> +++ lto-streamer-in.c (working copy)
> @@ -113,6 +113,7 @@ canon_file_name (const char *string)
> new_slot = XCNEW (struct string_slot);
> strcpy (saved_string, string);
> new_slot->s = saved_string;
> + new_slot->len = len;
> *slot = new_slot;
> return saved_string;
> }
Yes, this fixes the issue. Thanks Michael.
(This if branch is from 2009-10-03 according to "git blame",
so the other hasher must be more permissive)