aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2002-10-31 20:43:07 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2002-10-31 20:43:07 +0000
commit8efb33ec2da91dba827bd966e5552db13f84f860 (patch)
tree720bac507509d75c41662afad71eadcb9440e086 /gcc
parenta543c709abce66d4aa7086779696b3bf477833ce (diff)
downloadgcc-8efb33ec2da91dba827bd966e5552db13f84f860.zip
gcc-8efb33ec2da91dba827bd966e5552db13f84f860.tar.gz
gcc-8efb33ec2da91dba827bd966e5552db13f84f860.tar.bz2
* expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
From-SVN: r58694
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/expmed.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6591625..04ed853 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2002-10-31 Steve Ellcey <sje@cup.hp.com>
+ * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
+
+2002-10-31 Steve Ellcey <sje@cup.hp.com>
+
* config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set for non-floats.
Thu Oct 31 Dale Johannesen <dalej@apple.com>
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 730c4c1..6b365b9 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -404,6 +404,7 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, total_size)
But as we have it, it counts within whatever size OP0 now has.
On a bigendian machine, these are not the same, so convert. */
if (BYTES_BIG_ENDIAN
+ && !FUNCTION_ARG_REG_LITTLE_ENDIAN
&& GET_CODE (op0) != MEM
&& unit > GET_MODE_BITSIZE (GET_MODE (op0)))
bitpos += unit - GET_MODE_BITSIZE (GET_MODE (op0));