re PR rtl-optimization/11974 (ICE building alpha glibc: in emit_move_insn, at expr.c:3206)

PR optimization/11974
* optabs.c (expand_unop): Promote libcall outmode according to
hard_libcall_value.

From-SVN: r72170
This commit is contained in:
Falk Hueffner 2003-10-06 23:06:09 +00:00 committed by Carlo Wood
parent 70a01792d8
commit cd2ac05b77
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
PR optimization/11974
* optabs.c (expand_unop): Promote libcall outmode according to
hard_libcall_value.
2003-10-06 Zack Weinberg <zack@codesourcery.com>
* real.h (REAL_MODE_FORMAT): New macro.

View File

@ -2639,7 +2639,8 @@ expand_unop (enum machine_mode mode, optab unoptab, rtx op0, rtx target,
have them return something that isn't a double-word. */
if (unoptab == ffs_optab || unoptab == clz_optab || unoptab == ctz_optab
|| unoptab == popcount_optab || unoptab == parity_optab)
outmode = TYPE_MODE (integer_type_node);
outmode
= GET_MODE (hard_libcall_value (TYPE_MODE (integer_type_node)));
start_sequence ();