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]

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


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~

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