Eliminate ia64 compiler warnings. Fix ia64 gas testsuite again.

*  elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
	* config/tc-ia64.h (ia64_init): Add prototype.
	* gas/ia64/dv-imply.d, gas/ia64/dv-mutex.d, gas/ia64/dv-safe.d,
	gas/ia64/dv-srlz.d, gas/ia64/opc-m.d: Update.
	* ia64-dis.c (print_insn_ia64): Cast away const on ia64_free_opcode
	argument.
	* ia64_gen.c (insert_deplist): Cast sizeof result to int.
	(print_dependency_table): Print NULL if semantics field not set.
	(insert_opcode_dependencies): Mark cmp parameter as unused.
	(print_main_table): Use fprintf_vma to print long long fields.
	(main): Mark argv paramter as unused.  Convert to old style definition.
	* ia64-opc.c (ia64_find_dependency): Cast sizeof result to int.
	* ia64-asmtab.c: Regnerate.
This commit is contained in:
Jim Wilson 2000-12-12 22:56:36 +00:00
parent 3a71aec8b4
commit 514829c3af
15 changed files with 1624 additions and 1591 deletions

View file

@ -1,3 +1,7 @@
2000-12-12 Jim Wilson <wilson@redhat.com>
* elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2000-12-08 Mark Salter <msalter@redhat.com>
* binary.c (binary_set_section_contents): Ignore sections

View file

@ -1504,7 +1504,7 @@ get_dyn_sym_info (ia64_info, h, abfd, rel, create)
len += 10; /* %p slop */
addr_name = alloca (len);
sprintf (addr_name, "%p:%lx", abfd, ELFNN_R_SYM (rel->r_info));
sprintf (addr_name, "%p:%lx", (void *) abfd, ELFNN_R_SYM (rel->r_info));
/* Collect the canonical entry data for this address. */
loc_h = elfNN_ia64_local_hash_lookup (&ia64_info->loc_hash_table,

View file

@ -1,3 +1,7 @@
2000-12-12 Jim Wilson <wilson@redhat.com>
* config/tc-ia64.h (ia64_init): Add prototype.
2000-12-12 H.J. Lu <hjl@gnu.org>
* dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined.

View file

@ -39,6 +39,7 @@
md_parse_args. */
#define HOST_SPECIAL_INIT ia64_init
extern void ia64_init PARAMS ((int, char **));
#define TARGET_FORMAT ia64_target_format()
extern const char *ia64_target_format PARAMS ((void));

View file

@ -1,3 +1,8 @@
2000-12-12 Jim Wilson <wilson@redhat.com>
* gas/ia64/dv-imply.d, gas/ia64/dv-mutex.d, gas/ia64/dv-safe.d,
gas/ia64/dv-srlz.d, gas/ia64/opc-m.d: Update.
2000-12-12 Nick Clifton <nickc@redhat.com>
* gas/vtable/vtable.exp: Fix formatting.

View file

@ -22,18 +22,18 @@ Disassembly of section \.text:
40: 6a 08 06 04 02 78 \[MMI\] \(p03\) cmp\.eq\.unc p1,p2=r1,r2;;
46: 40 10 00 00 42 00 \(p01\) mov r4=2
4c: 00 00 04 00 nop\.i 0x0
50: 76 00 1c 00 00 10 \[BBB\] \(p03\) br\.cond\.sptk\.few c0 <L>
56: 00 00 00 00 10 00 nop\.b 0x0
5c: 00 00 00 20 nop\.b 0x0
50: 1c 00 00 00 01 00 \[MFB\] nop\.m 0x0
56: 00 00 00 02 80 01 nop\.f 0x0
5c: 70 00 00 40 \(p03\) br\.cond\.sptk\.few c0 <L>
60: 1d 20 1c 00 00 21 \[MFB\] mov r4=7
66: 00 00 00 02 00 00 nop\.f 0x0
6c: 00 00 20 00 rfi;;
70: 62 08 06 04 02 38 \[MII\] \(p03\) cmp\.eq\.unc p1,p2=r1,r2
76: 30 28 18 88 e8 80 cmp\.eq\.or p3,p4=r5,r6;;
7c: 20 00 00 84 \(p01\) mov r4=2
80: 76 00 10 00 00 10 \[BBB\] \(p03\) br\.cond\.sptk\.few c0 <L>
86: 00 00 00 00 10 00 nop\.b 0x0
8c: 00 00 00 20 nop\.b 0x0
80: 1c 00 00 00 01 00 \[MFB\] nop\.m 0x0
86: 00 00 00 02 80 01 nop\.f 0x0
8c: 40 00 00 40 \(p03\) br\.cond\.sptk\.few c0 <L>
90: 1d 20 1c 00 00 21 \[MFB\] mov r4=7
96: 00 00 00 02 00 00 nop\.f 0x0
9c: 00 00 20 00 rfi;;

View file

@ -10,18 +10,18 @@ Disassembly of section \.text:
0: 20 20 08 00 00 a1 \[MII\] \(p01\) mov r4=2
6: 40 28 00 00 c2 81 \(p02\) mov r4=5
c: 70 00 00 84 \(p03\) mov r4=7
10: 17 00 00 00 00 08 \[BBB\] nop\.b 0x0
16: 00 00 00 00 10 00 nop\.b 0x0
10: 1d 00 00 00 01 00 \[MFB\] nop\.m 0x0
16: 00 00 00 02 00 00 nop\.f 0x0
1c: 00 00 20 00 rfi;;
20: 0a 08 04 04 02 78 \[MMI\] cmp\.eq p1,p2=r1,r2;;
26: 40 10 00 00 42 81 \(p01\) mov r4=2
2c: 40 00 00 84 \(p02\) mov r4=4
30: 17 00 00 00 00 08 \[BBB\] nop\.b 0x0
36: 00 00 00 00 10 00 nop\.b 0x0
30: 1d 00 00 00 01 00 \[MFB\] nop\.m 0x0
36: 00 00 00 02 00 00 nop\.f 0x0
3c: 00 00 20 00 rfi;;
40: 60 08 06 04 02 78 \[MII\] \(p03\) cmp\.eq\.unc p1,p2=r1,r2
46: 40 10 00 00 42 81 \(p01\) mov r4=2
4c: 40 00 00 84 \(p02\) mov r4=4
50: 17 00 00 00 00 08 \[BBB\] nop\.b 0x0
56: 00 00 00 00 10 00 nop\.b 0x0
50: 1d 00 00 00 01 00 \[MFB\] nop\.m 0x0
56: 00 00 00 02 00 00 nop\.f 0x0
5c: 00 00 20 00 rfi;;

View file

@ -10,9 +10,9 @@ Disassembly of section \.text:
0: 02 08 04 04 02 38 \[MII\] cmp\.eq p1,p2=r1,r2
6: 30 18 10 08 70 00 cmp\.eq p3,p4=r3,r4;;
c: 00 00 04 00 nop\.i 0x0
10: 76 08 0c 00 00 14 \[BBB\] \(p03\) br\.call\.sptk\.few b1=40 <L>
16: 00 00 00 00 10 00 nop\.b 0x0
1c: 00 00 00 20 nop\.b 0x0
10: 1c 00 00 00 01 00 \[MFB\] nop\.m 0x0
16: 00 00 00 02 80 21 nop\.f 0x0
1c: 30 00 00 50 \(p03\) br\.call\.sptk\.few b1=40 <L>
20: 20 20 08 00 00 a1 \[MII\] \(p01\) mov r4=2
26: 40 28 00 00 c2 a1 \(p02\) mov r4=5
2c: 00 30 00 84 \(p03\) mov r5=r6

View file

@ -19,6 +19,6 @@ Disassembly of section \.text:
30: 17 00 00 00 10 00 \[BBB\] epc
36: 00 00 00 00 10 00 nop\.b 0x0
3c: 00 00 00 20 nop\.b 0x0;;
40: 17 00 00 00 00 08 \[BBB\] nop\.b 0x0
46: 00 00 00 00 10 00 nop\.b 0x0
40: 1d 00 00 00 01 00 \[MFB\] nop\.m 0x0
46: 00 00 00 02 00 00 nop\.f 0x0
4c: 00 00 20 00 rfi;;

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,15 @@
2000-12-12 Jim Wilson <wilson@redhat.com>
* ia64-dis.c (print_insn_ia64): Cast away const on ia64_free_opcode
argument.
* ia64_gen.c (insert_deplist): Cast sizeof result to int.
(print_dependency_table): Print NULL if semantics field not set.
(insert_opcode_dependencies): Mark cmp parameter as unused.
(print_main_table): Use fprintf_vma to print long long fields.
(main): Mark argv paramter as unused. Convert to old style definition.
* ia64-opc.c (ia64_find_dependency): Cast sizeof result to int.
* ia64-asmtab.c: Regnerate.
2000-12-09 Nick Clifton <nickc@redhat.com>
* m32r-dis.c (print_insn): Prevent re-read of instruction from

File diff suppressed because it is too large Load diff

View file

@ -261,7 +261,7 @@ print_insn_ia64 (bfd_vma memaddr, struct disassemble_info *info)
(*info->fprintf_func) (info->stream, ";;");
done:
ia64_free_opcode (idesc);
ia64_free_opcode ((struct ia64_opcode *)idesc);
failed:
if (slotnum == 2)
retval += 16 - 3*slot_multiplier;

View file

@ -281,14 +281,14 @@ insert_deplist(int count, unsigned short *deps)
for (i=0;i < count;i++)
set[deps[i]] = 1;
count = 0;
for (i=0;i < sizeof(set);i++)
for (i=0;i < (int)sizeof(set);i++)
if (set[i])
++count;
list = tmalloc(struct deplist);
list->len = count;
list->deps = (unsigned short *)malloc (sizeof(unsigned short) * count);
for (i=0, count=0;i < sizeof(set);i++)
for (i=0, count=0;i < (int)sizeof(set);i++)
{
if (set[i])
{
@ -1459,6 +1459,8 @@ print_dependency_table ()
(int)rdeps[i]->mode, (int)rdeps[i]->semantics, regindex);
if (rdeps[i]->semantics == IA64_DVS_OTHER)
printf ("\"%s\", ", rdeps[i]->extra);
else
printf ("NULL, ");
printf("},\n");
}
printf ("};\n\n");
@ -2395,7 +2397,7 @@ collapse_redundant_completers ()
int
insert_opcode_dependencies (opc, cmp)
struct ia64_opcode *opc;
struct completer_entry *cmp;
struct completer_entry *cmp ATTRIBUTE_UNUSED;
{
/* note all resources which point to this opcode. rfi has the most chks
(79) and cmpxchng has the most regs (54) so 100 here should be enough */
@ -2701,12 +2703,14 @@ print_main_table ()
printf ("static const struct ia64_main_table\nmain_table[] = {\n");
while (ptr != NULL)
{
printf (" { %d, %d, %d, 0x%llxull, 0x%llxull, { %d, %d, %d, %d, %d }, 0x%x, %d, },\n",
printf (" { %d, %d, %d, 0x",
ptr->name->num,
ptr->opcode->type,
ptr->opcode->num_outputs,
ptr->opcode->opcode,
ptr->opcode->mask,
ptr->opcode->num_outputs);
fprintf_vma (stdout, ptr->opcode->opcode);
printf ("ull, 0x");
fprintf_vma (stdout, ptr->opcode->mask);
printf ("ull, { %d, %d, %d, %d, %d }, 0x%x, %d, },\n",
ptr->opcode->operands[0],
ptr->opcode->operands[1],
ptr->opcode->operands[2],
@ -2735,7 +2739,9 @@ shrink (table)
}
int
main (int argc, char **argv)
main (argc, argv)
int argc;
char **argv ATTRIBUTE_UNUSED;
{
if (argc > 1)
{

View file

@ -740,7 +740,8 @@ ia64_find_dependency (index)
{
index = DEP(index);
if (index < 0 || index >= sizeof(dependencies) / sizeof(dependencies[0]))
if (index < 0
|| index >= (int)(sizeof(dependencies) / sizeof(dependencies[0])))
return NULL;
return &dependencies[index];