public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "d dot g dot gorbachev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/41340] [4.5 Regression] G++ produces different code with and without -g option
Date: Fri, 16 Oct 2009 20:10:00 -0000	[thread overview]
Message-ID: <20091016200954.19826.qmail@sourceware.org> (raw)
In-Reply-To: <bug-41340-16926@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from d dot g dot gorbachev at gmail dot com  2009-10-16 20:09 -------
There is a real difference, i.e.

- 179:  mov    0x8(%ebp),%edx
- 17c:  movzwl (%edx),%eax
+ 179:  mov    0x8(%ebp),%esi
+ 17c:  movzwl (%esi),%eax

[...]

- 1a0:  mov    %edx,(%esp)
- 1a3:  mov    %edx,-0x24(%ebp)
- 1a6:  call   1a7 <_Z8copy_rtxP7rtx_def+0x37>
- 1ab:  mov    %eax,%ecx
- 1ad:  movzbl 0x3(%eax),%eax
- 1b1:  mov    %eax,%esi
- 1b3:  and    $0xffffffdf,%eax

[...]

+ 1a0:  mov    %esi,(%esp)
+ 1a3:  call   1a4 <_Z8copy_rtxP7rtx_def+0x34>
+ 1a8:  mov    %eax,%edi
+ 1aa:  movzbl 0x3(%eax),%eax
+ 1ae:  mov    %eax,%ecx
+ 1b0:  and    $0xffffffdf,%eax
+ 1b3:  mov    %al,0x3(%edi)

etc.

-fcompare-debug produces  -fcompare-debug failure (length)


-- 

d dot g dot gorbachev at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |UNCONFIRMED


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


  parent reply	other threads:[~2009-10-16 20:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-11 21:33 [Bug other/41340] New: " d dot g dot gorbachev at gmail dot com
2009-09-11 21:33 ` [Bug other/41340] " d dot g dot gorbachev at gmail dot com
2009-09-12 11:54 ` rguenth at gcc dot gnu dot org
2009-09-18  9:22 ` [Bug debug/41340] " rguenth at gcc dot gnu dot org
2009-09-19  9:20 ` davek at gcc dot gnu dot org
2009-09-19  9:21 ` davek at gcc dot gnu dot org
2009-10-15 18:17 ` aoliva at gcc dot gnu dot org
2009-10-16 20:10 ` d dot g dot gorbachev at gmail dot com [this message]
2009-10-16 20:12 ` d dot g dot gorbachev at gmail dot com
2009-10-19 17:05 ` jakub at gcc dot gnu dot org
2009-10-19 17:14 ` jakub at gcc dot gnu dot org
2009-10-19 18:35 ` jakub at gcc dot gnu dot org
2009-10-20  9:40 ` jakub at gcc dot gnu dot org
2009-10-20 13:29 ` jakub at gcc dot gnu dot org
2009-10-20 14:32 ` jakub at gcc dot gnu dot org
2009-10-23  9:16 ` [Bug debug/41340] [4.5 Regression] GCC " d dot g dot gorbachev at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091016200954.19826.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).