This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Two minor ia64.c changes
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Oct 03 09:39:42 EST
- Subject: Two minor ia64.c changes
(1) assemble_integer should write @fptr for a function SYMBOL_REF if
the size is POINTER_SIZE. Testing that is equivalent to testing TARGET_ILP32
on some configurations (e.g, HPUX), but not all (e.g. VNS0.
(2) As requested by RTH, when writing an external for the trampoline,
use the target function.
2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
not TARGET_ILP32.
(ia64_initialize_trampoline): Use globalize_label target call.
*** config/ia64/ia64.c 29 Oct 2003 01:28:08 -0000 1.258
--- config/ia64/ia64.c 29 Oct 2003 14:21:14 -0000
*************** static bool
*** 3121,3125 ****
ia64_assemble_integer (rtx x, unsigned int size, int aligned_p)
{
! if (size == (TARGET_ILP32 ? 4 : 8)
&& aligned_p
&& !(TARGET_NO_PIC || TARGET_AUTO_PIC)
--- 3121,3125 ----
ia64_assemble_integer (rtx x, unsigned int size, int aligned_p)
{
! if (size == POINTER_SIZE / BITS_PER_UNIT
&& aligned_p
&& !(TARGET_NO_PIC || TARGET_AUTO_PIC)
*************** ia64_assemble_integer (rtx x, unsigned i
*** 3127,3131 ****
&& SYMBOL_REF_FUNCTION_P (x))
{
! if (TARGET_ILP32)
fputs ("\tdata4\t@fptr(", asm_out_file);
else
--- 3127,3131 ----
&& SYMBOL_REF_FUNCTION_P (x))
{
! if (POINTER_SIZE == 32)
fputs ("\tdata4\t@fptr(", asm_out_file);
else
*************** ia64_initialize_trampoline (rtx addr, rt
*** 3283,3287 ****
{
declared_ia64_trampoline = true;
! fputs ("\t.global\t__ia64_trampoline\n", asm_out_file);
}
}
--- 3283,3288 ----
{
declared_ia64_trampoline = true;
! (*targetm.asm_out.globalize_label) (asm_out_file,
! "__ia64_trampoline");
}
}