summaryrefslogtreecommitdiff
path: root/gcc/config/mn10300
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-26 14:39:15 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-26 14:39:15 +0000
commitdf70f9737fb6c0402758f34746de18eaff6608b5 (patch)
tree3316f19320fc1861d7f1710000951781744ae3c6 /gcc/config/mn10300
parent7ae884c9e325c25f5ee7dde0d5b513d9ba85c18d (diff)
downloadgcc-df70f9737fb6c0402758f34746de18eaff6608b5.tar.gz
PR target/54639
* config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset type promotion to unsigned. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196289 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mn10300')
-rw-r--r--gcc/config/mn10300/mn10300.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c
index a6c4b8eb0ff..f490e2d8e21 100644
--- a/gcc/config/mn10300/mn10300.c
+++ b/gcc/config/mn10300/mn10300.c
@@ -1077,7 +1077,7 @@ mn10300_expand_epilogue (void)
/* Insn: add size + 4 * num_regs_to_save
+ reg_save_bytes - 252,sp. */
this_strategy_size = SIZE_ADD_SP (size + 4 * num_regs_to_save
- + reg_save_bytes - 252);
+ + (int) reg_save_bytes - 252);
/* Insn: fmov (##,sp),fs#, fo each fs# to be restored. */
this_strategy_size += SIZE_FMOV_SP (252 - reg_save_bytes
- 4 * num_regs_to_save,