From: John David Anglin Date: Sat, 15 Sep 2007 19:30:50 +0000 (+0000) Subject: re PR target/33062 (ICE in emit_move_insn and expand_call with -fdefault-integer-8) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ae88ecd925ebe2d24884b474a1f19c89948a6f7;p=gcc.git re PR target/33062 (ICE in emit_move_insn and expand_call with -fdefault-integer-8) PR target/33062 * pa.c (function_value): Use GET_MODE_BITSIZE instead of TYPE_PRECISION. From-SVN: r128516 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71a8ad96d63..2f6520faa3b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-09-15 John David Anglin + + PR target/33062 + * pa.c (function_value): Use GET_MODE_BITSIZE instead of TYPE_PRECISION. + 2007-09-15 Dorit Nuzman * tree-vect-transform.c (vect_get_vec_defs_for_stmt_copy): check if diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 24b798e1265..47de208483a 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -9075,7 +9075,7 @@ function_value (const_tree valtype, const_tree func ATTRIBUTE_UNUSED) } if ((INTEGRAL_TYPE_P (valtype) - && TYPE_PRECISION (valtype) < BITS_PER_WORD) + && GET_MODE_BITSIZE (TYPE_MODE (valtype)) < BITS_PER_WORD) || POINTER_TYPE_P (valtype)) valmode = word_mode; else