[c/c++] i686 codegen bugs in tinfo2.cc

Richard Henderson rth@redhat.com
Thu Jan 11 01:34:00 GMT 2001


On Wed, Jan 10, 2001 at 06:57:56PM -0800, Benjamin Kosnik wrote:
> Comparing the assembly of this file (tinfo2.cc in libsupc++,
> part of libstdc++-v3) tinfo2.cc:226

[...]

@@ -1,10 +1,9 @@
   push   %ebp
   mov    %esp,%ebp
-  push   %ecx
-  push   %ecx
+  sub    $0x8,%esp
+  mov    0x10(%ebp),%eax
   mov    0x8(%ebp),%ecx
   mov    0x14(%ebp),%edx
-  mov    0x10(%ebp),%eax
   mov    %eax,(%edx)
   mov    (%ecx),%eax
   push   $0x1
@@ -13,7 +12,7 @@
   push   %edx
   push   %ecx
   call   *0x10(%eax)
-  and    $0xff,%eax
   mov    %ebp,%esp
   pop    %ebp
+  movzbl %al,%eax
   ret

I don't see anything that looks wrong...


r~


More information about the Gcc-bugs mailing list