This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: inlining BLKmode functions



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]