From 7ac5577a623dd191c4885a63bceb5faa8af8a7d9 Mon Sep 17 00:00:00 2001 From: davem Date: Sun, 4 Oct 1998 01:29:21 +0000 Subject: [PATCH] * function.c (purge_addressof_1): If trying to take a sub-word integral piece of a floating point mode, put it on the stack. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22804 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/function.c | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0b566c6e3d..44610f309ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sun Oct 4 00:23:00 1998 David S. Miller + + * 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 * alpha/linux.h (CPP_PREDEFINES): Define __alpha__ for imake. diff --git a/gcc/function.c b/gcc/function.c index 41f400e1c52..5e607597f4f 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. */ -- 2.11.0