From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19114 invoked by alias); 7 Jan 2013 22:14:43 -0000 Received: (qmail 18357 invoked by uid 48); 7 Jan 2013 22:13:37 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/55792] [4.8 Regression] Bad memory access with profiledbootstrap and LTO Date: Mon, 07 Jan 2013 22:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00579.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55792 --- Comment #12 from H.J. Lu 2013-01-07 22:13:33 UTC --- (In reply to comment #4) > Created attachment 29085 [details] > A patch to move lto_global_var_decls to lto/lto.c > > With this patch, I got > > lto1: internal compiler error: Segmentation fault > 0x997fc5 crash_signal > /export/gnu/import/git/gcc/gcc/toplev.c:334 > 0x545095 ggc_get_size(void const*) This patch misses: diff --cc gcc/lto/config-lang.in index 90235b0,90235b0..839d359 --- a/gcc/lto/config-lang.in +++ b/gcc/lto/config-lang.in @@@ -22,7 -22,7 +22,7 @@@ language="lto compilers="lto1\$(exeext)" stagestuff="lto1\$(exeext)" --gtfiles="\$(srcdir)/lto/lto-tree.h \$(srcdir)/lto/lto-lang.c \$(srcdir)/lto/lt o.c" ++gtfiles="\$(srcdir)/lto/lto-tree.h \$(srcdir)/lto/lto-lang.c \$(srcdir)/lto/lt o.c \$(srcdir)/lto/lto.h" # LTO is a special front end. From a user's perspective it is not # really a language, but a middle end feature. However, the GIMPLE