re PR target/33062 (ICE in emit_move_insn and expand_call with -fdefault-integer-8)
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sat, 15 Sep 2007 19:30:50 +0000 (19:30 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 15 Sep 2007 19:30:50 +0000 (19:30 +0000)
PR target/33062
* pa.c (function_value): Use GET_MODE_BITSIZE instead of TYPE_PRECISION.

From-SVN: r128516

gcc/ChangeLog
gcc/config/pa/pa.c

index 71a8ad96d63b9b58f17217fb4b35554032f0b7a6..2f6520faa3b4a975bdfb2420f00b338006ffa8e5 100644 (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 
index 24b798e1265243b24b6c07756d9c0073956407cf..47de208483af05be743320fa6f17a9b69a2c6b2c 100644 (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