From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1118 invoked by alias); 29 Mar 2012 14:58:03 -0000 Received: (qmail 1107 invoked by uid 22791); 29 Mar 2012 14:58:02 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY,TW_CP X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Mar 2012 14:57:49 +0000 From: "fdarkangel at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 Date: Thu, 29 Mar 2012 14:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fdarkangel 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: --- X-Bugzilla-Changed-Fields: Message-ID: 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: 2012-03/txt/msg02572.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773 Bug #: 52773 Summary: internal error: in replace_pseudos_in, at reload1.c:577 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: fdarkangel@gmail.com Created attachment 27035 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27035 An excerpt from SGDK v0.90 that demonstrates the bug Using m68k-elf-gcc 4.7.0 with m68k-elf-gcc -c -m68000 -Wall -O2 -funroll-loops -fomit-frame-pointer -fno-builtin-memset -fno-builtin-memcpy bug.c The problem disappears without -funroll-loops parameter (or -O0). I was able to compile the code on my host machine (x86_64, gcc 4.6.3) without any problems. More details on the cross compiler: m68k-elf-gcc -v Using built-in specs. COLLECT_GCC=m68k-elf-gcc COLLECT_LTO_WRAPPER=/opt/toolchains/sega/m68k-elf/libexec/gcc/m68k-elf/4.7.0/lto-wrapper Target: m68k-elf Configured with: ../gcc-4.7.0/configure --target=m68k-elf --prefix=/opt/toolchains/sega/m68k-elf --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-cpu=m68000 --disable-werror : (reconfigured) ../gcc-4.7.0/configure --target=m68k-elf --prefix=/opt/toolchains/sega/m68k-elf --with-newlib --disable-libssp --disable-tls --enable-threads=single --enable-languages=c,c++,objc,obj-c++ --with-cpu=m68000 --disable-werror Thread model: single gcc version 4.7.0 (GCC)