From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25821 invoked by alias); 10 Jul 2013 20:08:21 -0000 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 Received: (qmail 25788 invoked by uid 48); 10 Jul 2013 20:08:18 -0000 From: "d.g.gorbachev at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/57879] GCC with -flto generates invalid code for genmddeps program Date: Wed, 10 Jul 2013 20:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: build, lto, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: d.g.gorbachev 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-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00626.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57879 --- Comment #1 from Dmitry Gorbachev --- GCC 20130526 (r199345) - works: 08048a10
: main(): [...] 8048a62: mov $0x8048f60,%ecx 8048a67: mov $0x8048f80,%edx 8048a6c: mov $0xa1,%eax 8048a71: call 8049790 [...] 08049790 : htab_create_typed_alloc.constprop.9(): 8049790: push %ebp 8049791: mov %edx,%ebp [...] 80497e8: mov %ebp,(%edi) [...] GCC 20130609 (r199874) - fails: 08048a10
: main(): [...] 8048a62: movl $0x8048f80,0x8(%esp) 8048a6a: movl $0x8048fa0,0x4(%esp) 8048a72: movl $0xa1,(%esp) 8048a79: call 80497b0 [...] 080497b0 : htab_create_typed_alloc.constprop.9(): 80497b0: push %ebp 80497b1: mov %edx,%ebp [...] 8049808: mov %ebp,(%edi) [...] GCC 4.9.0 20130707 (experimental) - still fails.