aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/ia64
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2003-10-29 14:23:45 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2003-10-29 09:23:45 -0500
commitb6a41a622fca5c25b927189c55cd5bd614571bdf (patch)
tree090aa4d5c3d0e71d24800905f6060cfeb4c2a4ef /gcc/config/ia64
parent24c98faeff091398e7a9e806d21c2cda628e68f5 (diff)
downloadgcc-b6a41a622fca5c25b927189c55cd5bd614571bdf.zip
gcc-b6a41a622fca5c25b927189c55cd5bd614571bdf.tar.gz
gcc-b6a41a622fca5c25b927189c55cd5bd614571bdf.tar.bz2
ia64.c (ia64_assemble_integer): Test POINTER_SIZE, not TARGET_ILP32.
* config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE, not TARGET_ILP32. (ia64_initialize_trampoline): Use globalize_label target call. From-SVN: r73039
Diffstat (limited to 'gcc/config/ia64')
-rw-r--r--gcc/config/ia64/ia64.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index f494570..efbee69 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -3120,13 +3120,13 @@ ia64_hard_regno_rename_ok (int from, int to)
static bool
ia64_assemble_integer (rtx x, unsigned int size, int aligned_p)
{
- if (size == (TARGET_ILP32 ? 4 : 8)
+ if (size == POINTER_SIZE / BITS_PER_UNIT
&& aligned_p
&& !(TARGET_NO_PIC || TARGET_AUTO_PIC)
&& GET_CODE (x) == SYMBOL_REF
&& SYMBOL_REF_FUNCTION_P (x))
{
- if (TARGET_ILP32)
+ if (POINTER_SIZE == 32)
fputs ("\tdata4\t@fptr(", asm_out_file);
else
fputs ("\tdata8\t@fptr(", asm_out_file);
@@ -3282,7 +3282,8 @@ ia64_initialize_trampoline (rtx addr, rtx fnaddr, rtx static_chain)
if (!declared_ia64_trampoline)
{
declared_ia64_trampoline = true;
- fputs ("\t.global\t__ia64_trampoline\n", asm_out_file);
+ (*targetm.asm_out.globalize_label) (asm_out_file,
+ "__ia64_trampoline");
}
}
@@ -4405,7 +4406,7 @@ ia64_asm_output_external (FILE *file, tree decl, const char *name)
if (TARGET_GNU_AS
&& (!TARGET_HPUX_LD
|| TREE_CODE (decl) != FUNCTION_DECL
- || strstr(name, "__builtin_") == name))
+ || strstr (name, "__builtin_") == name))
return;
/* ??? The Intel assembler creates a reference that needs to be satisfied by