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
This commit is contained in:
John David Anglin 2007-09-15 19:30:50 +00:00 committed by John David Anglin
parent 4934454bed
commit 2ae88ecd92
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-09-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/33062
* pa.c (function_value): Use GET_MODE_BITSIZE instead of TYPE_PRECISION.
2007-09-15 Dorit Nuzman <dorit@il.ibm.com>
* tree-vect-transform.c (vect_get_vec_defs_for_stmt_copy): check if

View File

@ -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