public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/57879] New: GCC with -flto generates invalid code for genmddeps program
@ 2013-07-10 20:05 d.g.gorbachev at gmail dot com
  2013-07-10 20:08 ` [Bug lto/57879] " d.g.gorbachev at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2013-07-10 20:05 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57879

            Bug ID: 57879
           Summary: GCC with -flto generates invalid code for genmddeps
                    program
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: d.g.gorbachev at gmail dot com
              Host: i686-pc-linux-gnu
            Target: i686-pc-linux-gnu
             Build: i686-pc-linux-gnu

Created attachment 30495
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30495&action=edit
Self-contained (though not yet minimized) testcase

A function htab_create_typed_alloc.constprop.9 expects arguments in registers,
but called from main() with arguments on the stack.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug lto/57879] GCC with -flto generates invalid code for genmddeps program
  2013-07-10 20:05 [Bug lto/57879] New: GCC with -flto generates invalid code for genmddeps program d.g.gorbachev at gmail dot com
@ 2013-07-10 20:08 ` d.g.gorbachev at gmail dot com
  2013-07-10 20:20 ` izamyatin at gmail dot com
  2013-07-22 14:23 ` d.g.gorbachev at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2013-07-10 20:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57879

--- Comment #1 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> ---
GCC 20130526 (r199345) - works:

08048a10 <main>:
main():
[...]
 8048a62:       mov    $0x8048f60,%ecx
 8048a67:       mov    $0x8048f80,%edx
 8048a6c:       mov    $0xa1,%eax
 8048a71:       call   8049790 <htab_create_typed_alloc.constprop.9>
[...]
08049790 <htab_create_typed_alloc.constprop.9>:
htab_create_typed_alloc.constprop.9():
 8049790:       push   %ebp
 8049791:       mov    %edx,%ebp
[...]
 80497e8:       mov    %ebp,(%edi)
[...]

GCC 20130609 (r199874) - fails:

08048a10 <main>:
main():
[...]
 8048a62:       movl   $0x8048f80,0x8(%esp)
 8048a6a:       movl   $0x8048fa0,0x4(%esp)
 8048a72:       movl   $0xa1,(%esp)
 8048a79:       call   80497b0 <htab_create_typed_alloc.constprop.9>
[...]
080497b0 <htab_create_typed_alloc.constprop.9>:
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug lto/57879] GCC with -flto generates invalid code for genmddeps program
  2013-07-10 20:05 [Bug lto/57879] New: GCC with -flto generates invalid code for genmddeps program d.g.gorbachev at gmail dot com
  2013-07-10 20:08 ` [Bug lto/57879] " d.g.gorbachev at gmail dot com
@ 2013-07-10 20:20 ` izamyatin at gmail dot com
  2013-07-22 14:23 ` d.g.gorbachev at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: izamyatin at gmail dot com @ 2013-07-10 20:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57879

Igor Zamyatin <izamyatin at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |izamyatin at gmail dot com

--- Comment #2 from Igor Zamyatin <izamyatin at gmail dot com> ---
Dup of PR57602, I suppose


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug lto/57879] GCC with -flto generates invalid code for genmddeps program
  2013-07-10 20:05 [Bug lto/57879] New: GCC with -flto generates invalid code for genmddeps program d.g.gorbachev at gmail dot com
  2013-07-10 20:08 ` [Bug lto/57879] " d.g.gorbachev at gmail dot com
  2013-07-10 20:20 ` izamyatin at gmail dot com
@ 2013-07-22 14:23 ` d.g.gorbachev at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2013-07-22 14:23 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57879

Dmitry Gorbachev <d.g.gorbachev at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> ---
.

*** This bug has been marked as a duplicate of bug 57602 ***


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-22 14:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-10 20:05 [Bug lto/57879] New: GCC with -flto generates invalid code for genmddeps program d.g.gorbachev at gmail dot com
2013-07-10 20:08 ` [Bug lto/57879] " d.g.gorbachev at gmail dot com
2013-07-10 20:20 ` izamyatin at gmail dot com
2013-07-22 14:23 ` d.g.gorbachev at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).