diff options
author | David S. Miller <davem@pierdol.cobaltmicro.com> | 1998-10-04 01:29:21 +0000 |
---|---|---|
committer | David S. Miller <davem@gcc.gnu.org> | 1998-10-03 18:29:21 -0700 |
commit | ca2636edcddfab884d97f37bf0b09c3be362e689 (patch) | |
tree | 3f76ee96771621d9a87913e2091b0df0a156e184 /gcc | |
parent | 223bd5493d0f647ee2e968b53ff3b3555513a5d6 (diff) | |
download | gcc-ca2636edcddfab884d97f37bf0b09c3be362e689.zip gcc-ca2636edcddfab884d97f37bf0b09c3be362e689.tar.gz gcc-ca2636edcddfab884d97f37bf0b09c3be362e689.tar.bz2 |
function.c (purge_addressof_1): If trying to take a sub-word integral piece of a floating point mode...
* function.c (purge_addressof_1): If trying to take a sub-word
integral piece of a floating point mode, put it on the stack.
From-SVN: r22804
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/function.c | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0b566c..44610f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Oct 4 00:23:00 1998 David S. Miller <davem@pierdol.cobaltmicro.com> + + * function.c (purge_addressof_1): If trying to take a sub-word + integral piece of a floating point mode, put it on the stack. + Sat Oct 3 19:01:03 1998 Richard Henderson <rth@cygnus.com> * alpha/linux.h (CPP_PREDEFINES): Define __alpha__ for imake. diff --git a/gcc/function.c b/gcc/function.c index 41f400e..5e60759 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -2881,6 +2881,17 @@ purge_addressof_1 (loc, insn, force, store) rtx val, seq; + /* We cannot do this if we are trying to pick out + an integral piece, smaller than a word, of a + floating point value. */ + if (INTEGRAL_MODE_P (GET_MODE (x)) + && GET_MODE_SIZE (GET_MODE (x)) < UNITS_PER_WORD + && FLOAT_MODE_P (GET_MODE (sub))) + { + put_addressof_into_stack (XEXP (x, 0)); + return; + } + if (store) { /* If we can't replace with a register, be afraid. */ |