[Bug debug/41340] [4.5 Regression] G++ produces different code with and without -g option
d dot g dot gorbachev at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Oct 16 20:10:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list