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 PR target/21968 (gcc.dg/tls/debug-1.c fails on IA64 HP-UX)



This patch fixes PR 21968 by adding ILP32 support to
ia64_output_dwarf_dtprel.  It makes gcc.dg/tls/debug-1.c pass and showed
no regressions on IA64 HP-UX.

OK for checkin?

2005-07-14  Steve Ellcey  <sje@cup.hp.com>

	* config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.

*** gcc.orig/gcc/config/ia64/ia64.c	Thu Jul 14 11:07:23 2005
--- gcc/gcc/config/ia64/ia64.c	Thu Jul 14 11:07:08 2005
*************** ia64_function_value (tree valtype, tree 
*** 4267,4274 ****
  static void
  ia64_output_dwarf_dtprel (FILE *file, int size, rtx x)
  {
!   gcc_assert (size == 8);
!   fputs ("\tdata8.ua\t@dtprel(", file);
    output_addr_const (file, x);
    fputs (")", file);
  }
--- 4267,4277 ----
  static void
  ia64_output_dwarf_dtprel (FILE *file, int size, rtx x)
  {
!   gcc_assert (size == 4 || size == 8);
!   if (size == 4)
!     fputs ("\tdata4.ua\t@dtprel(", file);
!   else
!     fputs ("\tdata8.ua\t@dtprel(", file);
    output_addr_const (file, x);
    fputs (")", file);
  }


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