summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDenis Chertykov <denisc@overta.ru>2002-09-24 19:15:22 +0000
committerDenis Chertykov <denisc@gcc.gnu.org>2002-09-24 23:15:22 +0400
commit2106e42af4da05a6f59778b41c516c9d79e72312 (patch)
tree15213a9c158c3a0d8e291f906250932de659df96 /gcc
parent179a9cafbeb2e6c0e3ca5dee0bbd8454a58db794 (diff)
downloadgcc-2106e42af4da05a6f59778b41c516c9d79e72312.tar.gz
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/ip2k/ip2k.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ed343cd3f7b..f6b7c9187a9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/ip2k/ip2k.c b/gcc/config/ip2k/ip2k.c
index 7730ee4438f..9b392f59132 100644
--- a/gcc/config/ip2k/ip2k.c
+++ b/gcc/config/ip2k/ip2k.c
@@ -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;
}