This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/41340] [4.5 Regression] G++ produces different code with and without -g option
- From: "d dot g dot gorbachev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Oct 2009 20:12:03 -0000
- Subject: [Bug debug/41340] [4.5 Regression] G++ produces different code with and without -g option
- References: <bug-41340-16926@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 <execute_cleanup_eh+0xb29>
[...]
+ 38f2: xor %edi,%edi
+ 38f4: cmp %eax,(%ecx)
+ 38f6: jne 3ac3 <execute_cleanup_eh+0xb13>
+ 38fc: mov 0x0,%eax
+ 3901: xor %esi,%esi
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41340