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]
Other format: [Raw text]

Patch for HP-UX IA64 bootstrap failure


This is a patch to fix a problem I have when bootstrapping IA64 HP-UX.
This patch lets me get further along in the bootstrap but I am still
hitting other problems so I haven't been able to run a complete test on
this patch but it does get me further along and seems safe.

OK to check in?

Steve Ellcey
sje@cup.hp.com

2004-09-09  Steve Ellcey  <sje@cup.hp.com>

	* config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
	(TARGET_SCALAR_MODE_SUPPORTED_P): New.


*** gcc.orig/gcc/gcc/config/ia64/ia64.c	Thu Sep  9 08:50:55 2004
--- gcc/gcc/gcc/config/ia64/ia64.c	Thu Sep  9 08:52:47 2004
*************** static tree ia64_handle_model_attribute 
*** 276,281 ****
--- 276,282 ----
  static void ia64_encode_section_info (tree, rtx, int);
  static rtx ia64_struct_value_rtx (tree, int);
  static tree ia64_gimplify_va_arg (tree, tree, tree *, tree *);
+ static bool ia64_scalar_mode_supported_p (enum machine_mode mode);
  
  
  /* Table of valid machine attributes.  */
*************** static const struct attribute_spec ia64_
*** 416,421 ****
--- 417,425 ----
  #undef TARGET_UNWIND_EMIT
  #define TARGET_UNWIND_EMIT process_for_unwind_directive
  
+ #undef TARGET_SCALAR_MODE_SUPPORTED_P
+ #define TARGET_SCALAR_MODE_SUPPORTED_P ia64_scalar_mode_supported_p
+ 
  struct gcc_target targetm = TARGET_INITIALIZER;
  
  typedef enum
*************** ia64_struct_value_rtx (tree fntype,
*** 8476,8481 ****
--- 8480,8495 ----
    if (fntype && ia64_struct_retval_addr_is_first_parm_p (fntype))
      return NULL_RTX;
    return gen_rtx_REG (Pmode, GR_REG (8));
+ }
+ 
+ /* HP-UX supports XFmode as __float80.  */
+ 
+ static bool
+ ia64_scalar_mode_supported_p (enum machine_mode mode)
+ {
+   if (TARGET_HPUX && mode == XFmode)
+     return true;
+   return default_scalar_mode_supported_p(mode);
  }
  
  #include "gt-ia64.h"


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