* config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
authorSteve Ellcey <sje@cup.hp.com>
Thu, 14 Jul 2005 20:38:42 +0000 (20:38 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 14 Jul 2005 20:38:42 +0000 (20:38 +0000)
From-SVN: r102031

gcc/ChangeLog
gcc/config/ia64/ia64.c

index b0ca4f999eda0a30be79e1720e274e57038bab76..1d8dff4a29939565131d97ca80384b4570818ae1 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-14  Steve Ellcey  <sje@cup.hp.com>
+
+       * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
+
 2005-07-14  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/22347
index 1eb81069d0f28bd05972da3d1b8af353645269db..fd97cbeb14343eabd5b7b77031fc05a8d68d4104 100644 (file)
@@ -4267,8 +4267,11 @@ ia64_function_value (tree valtype, tree func ATTRIBUTE_UNUSED)
 static void
 ia64_output_dwarf_dtprel (FILE *file, int size, rtx x)
 {
-  gcc_assert (size == 8);
-  fputs ("\tdata8.ua\t@dtprel(", file);
+  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);
 }