ip2k.c (function_epilogue): Fix wrong numbers in cases of optimizing "add sp,w" to "inc sp".

* config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
	cases of optimizing "add sp,w" to "inc sp".

From-SVN: r57481
This commit is contained in:
Denis Chertykov 2002-09-24 19:15:22 +00:00 committed by Denis Chertykov
parent 179a9cafbe
commit 2106e42af4
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-09-24 Denis Chertykov <denisc@overta.ru>
* config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
cases of optimizing "add sp,w" to "inc sp".
2002-09-24 Adam Nemet <anemet@lnxw.com>
* config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate

View File

@ -353,7 +353,7 @@ function_epilogue (file, size)
/* fall-thru */
case 0:
break;
case 1:
case 0x100:
OUT_AS1 (inc, sph);
epilogue_size += 2;
}
@ -490,7 +490,7 @@ function_epilogue (file, size)
case 0:
break;
case 1:
case 0x100:
OUT_AS1 (inc, sph);
epilogue_size += 2;
}