PR63442 libgcc_cmp_return_mode not always return word_mode

gcc/
  PR target/63442
  * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".

From-SVN: r216765
This commit is contained in:
Jiong Wang 2014-10-27 21:58:59 +00:00 committed by Jiong Wang
parent 949bba26ff
commit a016932063
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-10-27 Jiong Wang <jiong.wang@arm.com>
PR target/63442
* optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
2014-10-27 DJ Delorie <dj@redhat.com>
* tree.c (build_common_tree_nodes): Don't even store the

View file

@ -4294,7 +4294,7 @@ prepare_cmp_insn (rtx x, rtx y, enum rtx_code comparison, rtx size,
y = const0_rtx;
}
*pmode = word_mode;
*pmode = ret_mode;
prepare_cmp_insn (x, y, comparison, NULL_RTX, unsignedp, methods,
ptest, pmode);
}