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]

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");
  	}
      }
  


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