wok diff linld/stuff/src/pipehole.awk @ rev 21989

fasm: build fasmarm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 15 18:06:41 2019 +0200 (2019-10-15)
parents 6e3d30b3031f
children fcb1de9af8f7
line diff
     1.1 --- a/linld/stuff/src/pipehole.awk	Mon Oct 14 11:20:06 2019 +0200
     1.2 +++ b/linld/stuff/src/pipehole.awk	Tue Oct 15 18:06:41 2019 +0200
     1.3 @@ -11,6 +11,11 @@
     1.4  	if (/add	si,2/) $0="	lodsw	; " $0
     1.5  	if (/add	si,4/) { print "	lodsw"; $0="	lodsw	; " $0 }
     1.6  	if (/add	di,2/) $0="	scasw	; " $0
     1.7 +	if (/int argc/) istazboot=1
     1.8 +	if (istazboot == 1) {
     1.9 +		if (/push.*i$/) $0="; " $0
    1.10 +		if (/word ptr/) { istazboot=0; $0="; " $0 }
    1.11 +	}
    1.12  	 } # file == "tazboot.cpp"
    1.13  	 if (file == "linld.cpp") {
    1.14  	if (/add	si,2/) $0="	lodsw	; " $0