This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for PR target/21968 (gcc.dg/tls/debug-1.c fails on IA64 HP-UX)
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Jul 2005 11:15:38 -0700 (PDT)
- Subject: Patch for PR target/21968 (gcc.dg/tls/debug-1.c fails on IA64 HP-UX)
- Reply-to: sje at cup dot hp dot com
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);
}