OSDN Git Service

PR target/33062
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Sep 2007 19:30:50 +0000 (19:30 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Sep 2007 19:30:50 +0000 (19:30 +0000)
* pa.c (function_value): Use GET_MODE_BITSIZE instead of TYPE_PRECISION.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128516 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 71a8ad9..2f6520f 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 24b798e..47de208 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