http://bugs.winehq.org/show_bug.cgi?id=10273
--- Comment #35 from M Welinder terra@gnome.org 2007-12-01 19:36:50 --- Specifically...
In Makefile, replace .c.o rule with these. (The first one cancels the built-in .c.o rule.)
%.o : %.c
.c.s: $(CC) -S $(ALLCFLAGS) -o $@.tmp $< $(TOPSRCDIR)/tools/asmfixer <$@.tmp >$@ $(RM) $@.tmp
And add this in tools/asmfixer:
#!/usr/bin/perl -w
use strict;
my $instrs = 100000;
while (<STDIN>) { $instrs = 0 if (/^[a-zA-Z_][a-zA-Z_0-9]*:/); while ($instrs < 8 && /^\t(call|j)/) { print "\tnop\n"; $instrs++; } $instrs++ if /^\t[a-z]/; print; }