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]

i386 TFmode fix


Hi
The RETURN_IN_MEMORY macro decides that it is good idea to return TFmode
in memory. This is unfortunate, because I meant TFmode as faster XFmode :).
I guess this patch can classify as fix for 3.0

Wed Feb 14 11:45:57 CET 2001  Jan Hubicka  <jh@suse.cz>
	* i386.h (RETURN_IN_MEMORY): Fix formating; reject TFmodes
Index: config/i386/i386.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.h,v
retrieving revision 1.153
diff -c -3 -p -r1.153 i386.h
*** i386.h	2001/02/14 21:16:35	1.153
--- i386.h	2001/02/14 21:41:32
*************** extern int ix86_arch;
*** 920,930 ****
     should always be returned in memory.  You should instead use
     `DEFAULT_PCC_STRUCT_RETURN' to indicate this.  */
  
! #define RETURN_IN_MEMORY(TYPE)							\
!   ((TYPE_MODE (TYPE) == BLKmode)						\
!    || (VECTOR_MODE_P (TYPE_MODE (TYPE)) && int_size_in_bytes (TYPE) == 8)	\
!    || (int_size_in_bytes (TYPE) > 12 && TYPE_MODE (TYPE) != TImode		\
!        && ! VECTOR_MODE_P (TYPE_MODE (TYPE))))
  
  
  /* Define the classes of registers for register constraints in the
--- 920,930 ----
     should always be returned in memory.  You should instead use
     `DEFAULT_PCC_STRUCT_RETURN' to indicate this.  */
  
! #define RETURN_IN_MEMORY(TYPE)					\
!   ((TYPE_MODE (TYPE) == BLKmode)					\
!    || (VECTOR_MODE_P (TYPE_MODE (TYPE)) && int_size_in_bytes (TYPE) == 8)\
!    || (int_size_in_bytes (TYPE) > 12 && TYPE_MODE (TYPE) != TImode	\
!        && TYPE_MODE (TYPE) != TFmode && ! VECTOR_MODE_P (TYPE_MODE (TYPE))))
  
  
  /* Define the classes of registers for register constraints in the


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