aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pa
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2007-09-15 19:30:50 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2007-09-15 19:30:50 +0000
commit2ae88ecd925ebe2d24884b474a1f19c89948a6f7 (patch)
treedba7cbbb89127c4976c22b759704e2fab84c1c92 /gcc/config/pa
parent4934454bed73a1a770ae7d4cf9b16df9c8c7a720 (diff)
downloadgcc-2ae88ecd925ebe2d24884b474a1f19c89948a6f7.zip
gcc-2ae88ecd925ebe2d24884b474a1f19c89948a6f7.tar.gz
gcc-2ae88ecd925ebe2d24884b474a1f19c89948a6f7.tar.bz2
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
Diffstat (limited to 'gcc/config/pa')
-rw-r--r--gcc/config/pa/pa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index 24b798e..47de208 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