From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20827 invoked by alias); 16 Oct 2009 20:12:15 -0000 Received: (qmail 20484 invoked by uid 48); 16 Oct 2009 20:12:03 -0000 Date: Fri, 16 Oct 2009 20:12:00 -0000 Message-ID: <20091016201203.20483.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/msg01487.txt.bz2 ------- Comment #6 from d dot g dot gorbachev at gmail dot com 2009-10-16 20:12 ------- Created an attachment (id=18813) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18813&action=view) gzipped preprocessed source file Another case. Compile with: cc1 -O3 -march=i686 -g tree-eh.i - 2fb6: sub $0xdc,%esp + 2fb6: sub $0xcc,%esp [...] - 38f2: mov $0x1,%edi - 38f7: movb $0x0,-0x98(%ebp) - 38fe: mov %edx,-0x9c(%ebp) - 3904: cmp %eax,(%ecx) - 3906: jne 3ad9 [...] + 38f2: xor %edi,%edi + 38f4: cmp %eax,(%ecx) + 38f6: jne 3ac3 + 38fc: mov 0x0,%eax + 3901: xor %esi,%esi -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41340