This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/41340] [4.5 Regression] G++ produces different code with and without -g option



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]