From: Jiong Wang Date: Mon, 27 Oct 2014 21:58:59 +0000 (+0000) Subject: PR63442 libgcc_cmp_return_mode not always return word_mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a016932063c1645d9b54eb5ea5caef0b7bb957fb;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 19931d5b623..9645ddae1c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-10-27 Jiong Wang + + PR target/63442 + * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode". + 2014-10-27 DJ Delorie * tree.c (build_common_tree_nodes): Don't even store the diff --git a/gcc/optabs.c b/gcc/optabs.c index c3623eae15a..677958f0ad9 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -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); }