aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-09-15 15:49:02 +0200
committerMartin Liska <mliska@suse.cz>2021-10-20 14:27:49 +0200
commit7113f1b54d533526c81459324faea4c100c50497 (patch)
tree2936a60771849d613c6be75e98eeb9c82223db3f /gcc/config/darwin.c
parent25ab851dd333d7369229050536bd7238091139bb (diff)
downloadgcc-7113f1b54d533526c81459324faea4c100c50497.zip
gcc-7113f1b54d533526c81459324faea4c100c50497.tar.gz
gcc-7113f1b54d533526c81459324faea4c100c50497.tar.bz2
Rename asm_out_file function arguments.
As preparation for a new global object that will encapsulate asm_out_file, we would need to live with a macro that will define asm_out_file as casm->out_file and thus the name can't be used in function arguments. gcc/ChangeLog: * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare already declared global variable. (arm_unwind_emit_set): Use out_file as function argument. (arm_unwind_emit): Likewise. * config/darwin.c (machopic_output_data_section_indirection): Likewise. (machopic_output_stub_indirection): Likewise. (machopic_output_indirection): Likewise. (machopic_finish): Likewise. * config/i386/i386.c (ix86_asm_output_function_label): Likewise. * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise. * config/ia64/ia64.c (process_epilogue): Likewise. (process_cfa_adjust_cfa): Likewise. (process_cfa_register): Likewise. (process_cfa_offset): Likewise. (ia64_asm_unwind_emit): Likewise. * config/s390/s390.c (s390_asm_output_function_label): Likewise.
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 28dc55d..204114c 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -1059,7 +1059,7 @@ machopic_legitimize_pic_address (rtx orig, machine_mode mode, rtx reg)
int
machopic_output_data_section_indirection (machopic_indirection **slot,
- FILE *asm_out_file)
+ FILE *out_file)
{
machopic_indirection *p = *slot;
@@ -1074,7 +1074,7 @@ machopic_output_data_section_indirection (machopic_indirection **slot,
switch_to_section (data_section);
assemble_align (GET_MODE_ALIGNMENT (Pmode));
- assemble_label (asm_out_file, ptr_name);
+ assemble_label (out_file, ptr_name);
assemble_integer (gen_rtx_SYMBOL_REF (Pmode, sym_name),
GET_MODE_SIZE (Pmode),
GET_MODE_ALIGNMENT (Pmode), 1);
@@ -1084,7 +1084,7 @@ machopic_output_data_section_indirection (machopic_indirection **slot,
int
machopic_output_stub_indirection (machopic_indirection **slot,
- FILE *asm_out_file)
+ FILE *out_file)
{
machopic_indirection *p = *slot;
@@ -1122,13 +1122,13 @@ machopic_output_stub_indirection (machopic_indirection **slot,
else
sprintf (stub, "%s%s", user_label_prefix, ptr_name);
- machopic_output_stub (asm_out_file, sym, stub);
+ machopic_output_stub (out_file, sym, stub);
return 1;
}
int
-machopic_output_indirection (machopic_indirection **slot, FILE *asm_out_file)
+machopic_output_indirection (machopic_indirection **slot, FILE *out_file)
{
machopic_indirection *p = *slot;
@@ -1160,18 +1160,18 @@ machopic_output_indirection (machopic_indirection **slot, FILE *asm_out_file)
storage has been allocated. */
&& !TREE_STATIC (decl))
{
- fputs ("\t.weak_reference ", asm_out_file);
- assemble_name (asm_out_file, sym_name);
- fputc ('\n', asm_out_file);
+ fputs ("\t.weak_reference ", out_file);
+ assemble_name (out_file, sym_name);
+ fputc ('\n', out_file);
}
}
- assemble_name (asm_out_file, ptr_name);
- fprintf (asm_out_file, ":\n");
+ assemble_name (out_file, ptr_name);
+ fprintf (out_file, ":\n");
- fprintf (asm_out_file, "\t.indirect_symbol ");
- assemble_name (asm_out_file, sym_name);
- fprintf (asm_out_file, "\n");
+ fprintf (out_file, "\t.indirect_symbol ");
+ assemble_name (out_file, sym_name);
+ fprintf (out_file, "\n");
/* Variables that are marked with MACHO_SYMBOL_FLAG_STATIC need to
have their symbol name instead of 0 in the second entry of
@@ -1191,7 +1191,7 @@ machopic_output_indirection (machopic_indirection **slot, FILE *asm_out_file)
}
static void
-machopic_finish (FILE *asm_out_file)
+machopic_finish (FILE *out_file)
{
if (!machopic_indirections)
return;
@@ -1199,13 +1199,13 @@ machopic_finish (FILE *asm_out_file)
/* First output an symbol indirections that have been placed into .data
(we don't expect these now). */
machopic_indirections->traverse_noresize
- <FILE *, machopic_output_data_section_indirection> (asm_out_file);
+ <FILE *, machopic_output_data_section_indirection> (out_file);
machopic_indirections->traverse_noresize
- <FILE *, machopic_output_stub_indirection> (asm_out_file);
+ <FILE *, machopic_output_stub_indirection> (out_file);
machopic_indirections->traverse_noresize
- <FILE *, machopic_output_indirection> (asm_out_file);
+ <FILE *, machopic_output_indirection> (out_file);
}
int