Module: wine Branch: refs/heads/master Commit: 392933149b1f5b6653e010362a25a3bdc796ae7f URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=392933149b1f5b6653e01036...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Apr 5 20:02:51 2006 +0200
winebuild: Remove a no longer necessary movzwl instruction.
This could cause broken relays to be generated depending on the order of the entry points in the relay list. Also add a few missing tabs in the assembly output.
---
tools/winebuild/spec16.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/tools/winebuild/spec16.c b/tools/winebuild/spec16.c index d3b4ef3..a41ec0a 100644 --- a/tools/winebuild/spec16.c +++ b/tools/winebuild/spec16.c @@ -375,7 +375,6 @@ static void output_call16_function( FILE fprintf( outfile, "\tcall *8(%%ebp)\n" );
if (needs_ldt) fprintf( outfile, "\tmovl -4(%%ebp),%%esi\n" ); - if (odp->flags & FLAG_RET16) fprintf( outfile, "\tmovzwl %%ax,%%eax\n" );
fprintf( outfile, "\tleave\n" ); fprintf( outfile, "\tret\n" ); @@ -726,17 +725,17 @@ void BuildSpec16File( FILE *outfile, DLL } else { - fprintf( outfile, "shld $16,%%eax,%%edx\n" ); - fprintf( outfile, "orl %%eax,%%eax\n" ); + fprintf( outfile, "\tshld $16,%%eax,%%edx\n" ); + fprintf( outfile, "\torl %%eax,%%eax\n" ); nop_words = 1; }
if (argsize) { - fprintf( outfile, "lretw $%u\n", argsize ); + fprintf( outfile, "\tlretw $%u\n", argsize ); nop_words--; } - else fprintf( outfile, "lretw\n" ); + else fprintf( outfile, "\tlretw\n" );
if (nop_words) fprintf( outfile, "\t%s\n", nop_sequence[nop_words-1] );