From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31107 invoked by alias); 9 Nov 2012 05:09:48 -0000 Received: (qmail 30884 invoked by uid 48); 9 Nov 2012 05:08:31 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/55247] [4.8 Regression] internal compiler error: Max. number of generated reload insns per insn is achieved (90) Date: Fri, 09 Nov 2012 05:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 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" Content-Transfer-Encoding: quoted-printable 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: 2012-11/txt/msg00799.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55247 --- Comment #1 from H.J. Lu 2012-11-09 05:08:2= 9 UTC --- [hjl@gnu-tools-1 gcc]$ cat /export/gnu/import/delta-2006.08.03/x.c typedef unsigned int uint32_t; typedef unsigned int uintptr_t; typedef uint32_t Elf32_Word; typedef uint32_t Elf32_Addr; typedef struct { Elf32_Word st_name; Elf32_Addr st_value; Elf32_Word st_size; unsigned char st_other; } Elf32_Sym; typedef struct { Elf32_Word r_info; } Elf32_Rela; typedef struct { union { Elf32_Addr d_ptr; } d_un; } Elf32_Dyn; struct link_map { Elf32_Dyn *l_info[34]; }; typedef struct link_map *lookup_t; extern void symbind32 (Elf32_Sym *); void _dl_profile_fixup (struct link_map *l, Elf32_Word reloc_arg) { const Elf32_Sym *const symtab =3D (const void *) (l)->l_info[6]->d_un.d_= ptr; const Elf32_Rela *const reloc =3D (const void *) ((l)->l_info[23]->d_un.= d_ptr + reloc_arg * sizeof (Elf32_Rela)); const Elf32_Sym *refsym =3D &symtab[((reloc->r_info) >> 8)]; const Elf32_Sym *defsym =3D refsym; Elf32_Sym sym =3D *defsym; symbind32 (&sym); } [hjl@gnu-tools-1 gcc]$ ./xgcc -B./ -mx32 -mtune=3Dgeneric -march=3Dx86-64 -maddress-mode=3Dlong -c -std=3Dgnu99 -fgnu89-inline -O3 -fPIC -mno-sse -mno-mmx /export/gnu/import/delta-2006.08.03/x.c=20 /export/gnu/import/delta-2006.08.03/x.c: In function =E2=80=98_dl_profile_f= ixup=E2=80=99: /export/gnu/import/delta-2006.08.03/x.c:35:1: internal compiler error: Max. number of generated reload insns per insn is achieved (90) } ^ 0x8d78cd lra_constraints(bool) /export/gnu/import/git/gcc/gcc/lra-constraints.c:3381 0x8c8169 lra(_IO_FILE*) /export/gnu/import/git/gcc/gcc/lra.c:2274 0x87dc24 do_reload /export/gnu/import/git/gcc/gcc/ira.c:4624 0x87de32 rest_of_handle_reload /export/gnu/import/git/gcc/gcc/ira.c:4737 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. [hjl@gnu-tools-1 gcc]$ ./xgcc -B./ -mx32 -mtune=3Dgeneric -march=3Dx86-64 -maddress-mode=3Dlong -c -std=3Dgnu99 -fgnu89-inline -O3 -fPIC -mno-sse -mno-mmx /export/gnu/import/delta-2006.08.03/x.c -mno-lra [hjl@gnu-tools-1 gcc]$