From ca2636edcddfab884d97f37bf0b09c3be362e689 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Sun, 4 Oct 1998 01:29:21 +0000 Subject: 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 --- gcc/function.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gcc/function.c') 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. */ -- cgit v1.1