From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19935 invoked by alias); 16 Oct 2009 20:10:07 -0000 Received: (qmail 19827 invoked by uid 48); 16 Oct 2009 20:09:54 -0000 Date: Fri, 16 Oct 2009 20:10:00 -0000 Message-ID: <20091016200954.19826.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug debug/41340] [4.5 Regression] G++ produces different code with and without -g option In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "d dot g dot gorbachev at gmail dot com" 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: 2009-10/txt/msg01486.txt.bz2 ------- 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