This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: inlining BLKmode functions
- To: Gavin Romig-Koch <gavin at cygnus dot com>
- Subject: Re: inlining BLKmode functions
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 01 Oct 1998 13:02:13 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <m0zMfej-000s89C@cetus.cygnus.com>you write:
>
> This is my shot at getting inlining to work for functions
> which return BLKmode structs in registers (like on the PA
> and under EABI).
>
> OK to commit?
>
> -gavin...
>
>
>
> * calls.c (expand_call) : Encapsulate code into
> copy_blkmode_from_reg.
> * expr.c (copy_blkmode_from_reg): New function.
> * expr.h (copy_blkmode_from_reg): New function.
> * integrate.c (function_cannot_inline_p): We can inline
> these now.
> (expand_inline_function): Use copy_blkmode_from_reg
> if needed. Avoid creating BLKmode REGs.
> (copy_rtx_and_substitute): Don't try to SUBREG a BLKmode
> object.
Looks reasonable to me. I tested the PA with the patch and it no longer
aborts on inlined structure returns. Yippie!
Thanks!
jeff