Patchwork Committed: Fix PR target/54639

login
register
mail settings
Submitter Joern Rennecke
Date Feb. 26, 2013, 3:27 p.m.
Message ID <20130226102747.036xwlm4ys8wkwok-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/223239/
State New
Headers show

Comments

Joern Rennecke - Feb. 26, 2013, 3:27 p.m.
Committed as obvious.
2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>

        PR target/54639
        * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
        type promotion to unsigned.

Patch

Index: config/mn10300/mn10300.c
===================================================================
--- config/mn10300/mn10300.c	(revision 196282)
+++ config/mn10300/mn10300.c	(working copy)
@@ -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,