mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* config/tc-ia64.c: Fix formatting.
* config/tc-ia64.h: Likewise.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
|
* config/tc-ia64.c: Fix formatting.
|
||||||
|
* config/tc-ia64.h: Likewise.
|
||||||
|
|
||||||
2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
|
2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
* config/tc-mips.c: Fix formatting.
|
* config/tc-mips.c: Fix formatting.
|
||||||
|
@ -880,7 +880,7 @@ static void free_saved_prologue_counts PARAMS ((void));
|
|||||||
/* Build the unwind section name by appending the (possibly stripped)
|
/* Build the unwind section name by appending the (possibly stripped)
|
||||||
text section NAME to the unwind PREFIX. The resulting string
|
text section NAME to the unwind PREFIX. The resulting string
|
||||||
pointer is assigned to RESULT. The string is allocated on the
|
pointer is assigned to RESULT. The string is allocated on the
|
||||||
stack, so this must be a macro... */
|
stack, so this must be a macro... */
|
||||||
#define make_unw_section_name(special, text_name, result) \
|
#define make_unw_section_name(special, text_name, result) \
|
||||||
{ \
|
{ \
|
||||||
const char *_prefix = special_section_name[special]; \
|
const char *_prefix = special_section_name[special]; \
|
||||||
@ -961,8 +961,8 @@ ia64_elf_section_flags (flags, attr, type)
|
|||||||
|
|
||||||
int
|
int
|
||||||
ia64_elf_section_type (str, len)
|
ia64_elf_section_type (str, len)
|
||||||
const char *str;
|
const char *str;
|
||||||
size_t len;
|
size_t len;
|
||||||
{
|
{
|
||||||
#define STREQ(s) ((len == sizeof (s) - 1) && (strncmp (str, s, sizeof (s) - 1) == 0))
|
#define STREQ(s) ((len == sizeof (s) - 1) && (strncmp (str, s, sizeof (s) - 1) == 0))
|
||||||
|
|
||||||
@ -2826,7 +2826,7 @@ setup_unwind_header (int size, unsigned char **mem)
|
|||||||
*mem = xmalloc (size + extra + 8 + md.pointer_size);
|
*mem = xmalloc (size + extra + 8 + md.pointer_size);
|
||||||
|
|
||||||
/* Clear the padding area and personality. */
|
/* Clear the padding area and personality. */
|
||||||
memset (*mem + 8 + size, 0 , extra + md.pointer_size);
|
memset (*mem + 8 + size, 0, extra + md.pointer_size);
|
||||||
|
|
||||||
/* Initialize the header area. */
|
/* Initialize the header area. */
|
||||||
if (unwind.personality_routine)
|
if (unwind.personality_routine)
|
||||||
@ -3288,7 +3288,7 @@ generate_unwind_image (text_name)
|
|||||||
/* Add the personality address to the image. */
|
/* Add the personality address to the image. */
|
||||||
if (unwind.personality_routine != 0)
|
if (unwind.personality_routine != 0)
|
||||||
{
|
{
|
||||||
exp.X_op = O_symbol;
|
exp.X_op = O_symbol;
|
||||||
exp.X_add_symbol = unwind.personality_routine;
|
exp.X_add_symbol = unwind.personality_routine;
|
||||||
exp.X_add_number = 0;
|
exp.X_add_number = 0;
|
||||||
|
|
||||||
@ -3299,7 +3299,7 @@ generate_unwind_image (text_name)
|
|||||||
else
|
else
|
||||||
reloc = BFD_RELOC_IA64_LTOFF_FPTR32MSB;
|
reloc = BFD_RELOC_IA64_LTOFF_FPTR32MSB;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (md.flags & EF_IA_64_ABI64)
|
if (md.flags & EF_IA_64_ABI64)
|
||||||
reloc = BFD_RELOC_IA64_LTOFF_FPTR64LSB;
|
reloc = BFD_RELOC_IA64_LTOFF_FPTR64LSB;
|
||||||
@ -3308,7 +3308,7 @@ generate_unwind_image (text_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fix_new_exp (frag_now, frag_now_fix () - md.pointer_size,
|
fix_new_exp (frag_now, frag_now_fix () - md.pointer_size,
|
||||||
md.pointer_size, & exp, 0, reloc);
|
md.pointer_size, &exp, 0, reloc);
|
||||||
unwind.personality_routine = 0;
|
unwind.personality_routine = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3771,7 +3771,7 @@ save_prologue_count (lbl, count)
|
|||||||
lpc->prologue_count = count;
|
lpc->prologue_count = count;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
label_prologue_count * new_lpc = xmalloc (sizeof (* new_lpc));
|
label_prologue_count *new_lpc = xmalloc (sizeof (* new_lpc));
|
||||||
|
|
||||||
new_lpc->next = unwind.saved_prologue_counts;
|
new_lpc->next = unwind.saved_prologue_counts;
|
||||||
new_lpc->label_number = lbl;
|
new_lpc->label_number = lbl;
|
||||||
@ -3783,8 +3783,8 @@ save_prologue_count (lbl, count)
|
|||||||
static void
|
static void
|
||||||
free_saved_prologue_counts ()
|
free_saved_prologue_counts ()
|
||||||
{
|
{
|
||||||
label_prologue_count * lpc = unwind.saved_prologue_counts;
|
label_prologue_count *lpc = unwind.saved_prologue_counts;
|
||||||
label_prologue_count * next;
|
label_prologue_count *next;
|
||||||
|
|
||||||
while (lpc != NULL)
|
while (lpc != NULL)
|
||||||
{
|
{
|
||||||
@ -4060,7 +4060,7 @@ dot_endp (dummy)
|
|||||||
where = frag_now_fix () - (3 * md.pointer_size);
|
where = frag_now_fix () - (3 * md.pointer_size);
|
||||||
bytes_per_address = bfd_arch_bits_per_address (stdoutput) / 8;
|
bytes_per_address = bfd_arch_bits_per_address (stdoutput) / 8;
|
||||||
|
|
||||||
/* Issue the values of a) Proc Begin, b) Proc End, c) Unwind Record. */
|
/* Issue the values of a) Proc Begin, b) Proc End, c) Unwind Record. */
|
||||||
e.X_op = O_pseudo_fixup;
|
e.X_op = O_pseudo_fixup;
|
||||||
e.X_op_symbol = pseudo_func[FUNC_SEG_RELATIVE].u.sym;
|
e.X_op_symbol = pseudo_func[FUNC_SEG_RELATIVE].u.sym;
|
||||||
e.X_add_number = 0;
|
e.X_add_number = 0;
|
||||||
@ -5807,7 +5807,7 @@ errata_nop_necessary_p (slot, insn_unit)
|
|||||||
&& strncmp (idesc->name, "ptr", 3) != 0
|
&& strncmp (idesc->name, "ptr", 3) != 0
|
||||||
&& strncmp (idesc->name, "ptc", 3) != 0
|
&& strncmp (idesc->name, "ptc", 3) != 0
|
||||||
&& strncmp (idesc->name, "probe", 5) != 0)
|
&& strncmp (idesc->name, "probe", 5) != 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (prev_group->g_reg_set_conditionally[regno])
|
if (prev_group->g_reg_set_conditionally[regno])
|
||||||
return 1;
|
return 1;
|
||||||
@ -6199,12 +6199,12 @@ emit_one_bundle ()
|
|||||||
continue; /* try next slot */
|
continue; /* try next slot */
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
bfd_vma addr;
|
bfd_vma addr;
|
||||||
|
|
||||||
addr = frag_now->fr_address + frag_now_fix () - 16 + i;
|
addr = frag_now->fr_address + frag_now_fix () - 16 + i;
|
||||||
dwarf2_gen_line_info (addr, &md.slot[curr].debug_line);
|
dwarf2_gen_line_info (addr, &md.slot[curr].debug_line);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errata_nop_necessary_p (md.slot + curr, insn_unit))
|
if (errata_nop_necessary_p (md.slot + curr, insn_unit))
|
||||||
as_warn (_("Additional NOP may be necessary to workaround Itanium processor A/B step errata"));
|
as_warn (_("Additional NOP may be necessary to workaround Itanium processor A/B step errata"));
|
||||||
@ -7459,7 +7459,7 @@ dep->name, idesc->name, (rsrc_write?"write":"read"), note)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (i = idesc->num_outputs;i < NELEMS (idesc->operands); i++)
|
for (i = idesc->num_outputs; i < NELEMS (idesc->operands); i++)
|
||||||
if (idesc->operands[i] == IA64_OPND_B1
|
if (idesc->operands[i] == IA64_OPND_B1
|
||||||
|| idesc->operands[i] == IA64_OPND_B2)
|
|| idesc->operands[i] == IA64_OPND_B2)
|
||||||
{
|
{
|
||||||
@ -7981,7 +7981,7 @@ dep->name, idesc->name, (rsrc_write?"write":"read"), note)
|
|||||||
&& idesc->operands[0] == IA64_OPND_PR)
|
&& idesc->operands[0] == IA64_OPND_PR)
|
||||||
{
|
{
|
||||||
mask = CURR_SLOT.opnd[2].X_add_number;
|
mask = CURR_SLOT.opnd[2].X_add_number;
|
||||||
if (mask & ((valueT) 1<<16))
|
if (mask & ((valueT) 1 << 16))
|
||||||
for (i = 16; i < 63; i++)
|
for (i = 16; i < 63; i++)
|
||||||
{
|
{
|
||||||
specs[count] = tmpl;
|
specs[count] = tmpl;
|
||||||
@ -8472,13 +8472,13 @@ dep->name, idesc->name, (rsrc_write?"write":"read"), note)
|
|||||||
specs[count++] = tmpl;
|
specs[count++] = tmpl;
|
||||||
}
|
}
|
||||||
else if (note == 7)
|
else if (note == 7)
|
||||||
{
|
{
|
||||||
valueT mask = 0;
|
valueT mask = 0;
|
||||||
if (idesc->operands[2] == IA64_OPND_IMM17)
|
if (idesc->operands[2] == IA64_OPND_IMM17)
|
||||||
mask = CURR_SLOT.opnd[2].X_add_number;
|
mask = CURR_SLOT.opnd[2].X_add_number;
|
||||||
if (mask & ((valueT) 1 << 63))
|
if (mask & ((valueT) 1 << 63))
|
||||||
specs[count++] = tmpl;
|
specs[count++] = tmpl;
|
||||||
}
|
}
|
||||||
else if (note == 11)
|
else if (note == 11)
|
||||||
{
|
{
|
||||||
if ((idesc->operands[0] == IA64_OPND_P1
|
if ((idesc->operands[0] == IA64_OPND_P1
|
||||||
@ -8500,8 +8500,8 @@ dep->name, idesc->name, (rsrc_write?"write":"read"), note)
|
|||||||
{
|
{
|
||||||
if (rsrc_write)
|
if (rsrc_write)
|
||||||
{
|
{
|
||||||
int p1 = CURR_SLOT.opnd[0].X_add_number - REG_P;
|
int p1 = CURR_SLOT.opnd[0].X_add_number - REG_P;
|
||||||
int p2 = CURR_SLOT.opnd[1].X_add_number - REG_P;
|
int p2 = CURR_SLOT.opnd[1].X_add_number - REG_P;
|
||||||
int or_andcm = strstr (idesc->name, "or.andcm") != NULL;
|
int or_andcm = strstr (idesc->name, "or.andcm") != NULL;
|
||||||
int and_orcm = strstr (idesc->name, "and.orcm") != NULL;
|
int and_orcm = strstr (idesc->name, "and.orcm") != NULL;
|
||||||
|
|
||||||
@ -8509,7 +8509,7 @@ dep->name, idesc->name, (rsrc_write?"write":"read"), note)
|
|||||||
&& (idesc->operands[0] == IA64_OPND_P1
|
&& (idesc->operands[0] == IA64_OPND_P1
|
||||||
|| idesc->operands[0] == IA64_OPND_P2))
|
|| idesc->operands[0] == IA64_OPND_P2))
|
||||||
{
|
{
|
||||||
specs[count] = tmpl;
|
specs[count] = tmpl;
|
||||||
specs[count++].cmp_type =
|
specs[count++].cmp_type =
|
||||||
(or_andcm ? CMP_OR : (and_orcm ? CMP_AND : CMP_NONE));
|
(or_andcm ? CMP_OR : (and_orcm ? CMP_AND : CMP_NONE));
|
||||||
}
|
}
|
||||||
@ -8517,7 +8517,7 @@ dep->name, idesc->name, (rsrc_write?"write":"read"), note)
|
|||||||
&& (idesc->operands[1] == IA64_OPND_P1
|
&& (idesc->operands[1] == IA64_OPND_P1
|
||||||
|| idesc->operands[1] == IA64_OPND_P2))
|
|| idesc->operands[1] == IA64_OPND_P2))
|
||||||
{
|
{
|
||||||
specs[count] = tmpl;
|
specs[count] = tmpl;
|
||||||
specs[count++].cmp_type =
|
specs[count++].cmp_type =
|
||||||
(or_andcm ? CMP_AND : (and_orcm ? CMP_OR : CMP_NONE));
|
(or_andcm ? CMP_AND : (and_orcm ? CMP_OR : CMP_NONE));
|
||||||
}
|
}
|
||||||
@ -8756,8 +8756,8 @@ add_qp_mutex (mask)
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
has_suffix_p (name, suffix)
|
has_suffix_p (name, suffix)
|
||||||
const char *name;
|
const char *name;
|
||||||
const char *suffix;
|
const char *suffix;
|
||||||
{
|
{
|
||||||
size_t namelen = strlen (name);
|
size_t namelen = strlen (name);
|
||||||
size_t sufflen = strlen (suffix);
|
size_t sufflen = strlen (suffix);
|
||||||
@ -9986,26 +9986,27 @@ ia64_cons_fix_new (f, where, nbytes, exp)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 8:
|
case 8:
|
||||||
/* In 32-bit mode, data8 could mean function descriptors too. */
|
/* In 32-bit mode, data8 could mean function descriptors too. */
|
||||||
if (exp->X_op == O_pseudo_fixup
|
if (exp->X_op == O_pseudo_fixup
|
||||||
&& exp->X_op_symbol
|
&& exp->X_op_symbol
|
||||||
&& S_GET_VALUE (exp->X_op_symbol) == FUNC_IPLT_RELOC
|
&& S_GET_VALUE (exp->X_op_symbol) == FUNC_IPLT_RELOC
|
||||||
&& !(md.flags & EF_IA_64_ABI64))
|
&& !(md.flags & EF_IA_64_ABI64))
|
||||||
{
|
{
|
||||||
if (target_big_endian)
|
if (target_big_endian)
|
||||||
code = BFD_RELOC_IA64_IPLTMSB;
|
code = BFD_RELOC_IA64_IPLTMSB;
|
||||||
else
|
else
|
||||||
code = BFD_RELOC_IA64_IPLTLSB;
|
code = BFD_RELOC_IA64_IPLTLSB;
|
||||||
exp->X_op = O_symbol;
|
exp->X_op = O_symbol;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
if (target_big_endian)
|
{
|
||||||
code = BFD_RELOC_IA64_DIR64MSB;
|
if (target_big_endian)
|
||||||
else
|
code = BFD_RELOC_IA64_DIR64MSB;
|
||||||
code = BFD_RELOC_IA64_DIR64LSB;
|
else
|
||||||
break;
|
code = BFD_RELOC_IA64_DIR64LSB;
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case 16:
|
case 16:
|
||||||
if (exp->X_op == O_pseudo_fixup
|
if (exp->X_op == O_pseudo_fixup
|
||||||
@ -10162,8 +10163,8 @@ ia64_gen_real_reloc_type (sym, r_type)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FUNC_IPLT_RELOC:
|
case FUNC_IPLT_RELOC:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
abort ();
|
abort ();
|
||||||
@ -10267,11 +10268,11 @@ fix_insn (fix, odesc, value)
|
|||||||
void
|
void
|
||||||
md_apply_fix3 (fix, valP, seg)
|
md_apply_fix3 (fix, valP, seg)
|
||||||
fixS *fix;
|
fixS *fix;
|
||||||
valueT * valP;
|
valueT *valP;
|
||||||
segT seg ATTRIBUTE_UNUSED;
|
segT seg ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
char *fixpos;
|
char *fixpos;
|
||||||
valueT value = * valP;
|
valueT value = *valP;
|
||||||
int adjust = 0;
|
int adjust = 0;
|
||||||
|
|
||||||
fixpos = fix->fx_frag->fr_literal + fix->fx_where;
|
fixpos = fix->fx_frag->fr_literal + fix->fx_where;
|
||||||
|
Reference in New Issue
Block a user